


Code: Select all
cryptsetup benchmarkCode: Select all
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 3163125 iterations per second for 256-bit key
PBKDF2-sha256 5637505 iterations per second for 256-bit key
PBKDF2-sha512 2614902 iterations per second for 256-bit key
PBKDF2-ripemd160 960234 iterations per second for 256-bit key
PBKDF2-whirlpool 868026 iterations per second for 256-bit key
argon2i 14 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 14 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1474.7 MiB/s 6021.6 MiB/s
serpent-cbc 128b 142.3 MiB/s 1015.3 MiB/s
twofish-cbc 128b 276.7 MiB/s 514.0 MiB/s
aes-cbc 256b 1113.4 MiB/s 4893.7 MiB/s
serpent-cbc 256b 141.6 MiB/s 1014.7 MiB/s
twofish-cbc 256b 279.4 MiB/s 516.8 MiB/s
aes-xts 256b 5147.0 MiB/s 5141.5 MiB/s
serpent-xts 256b 850.8 MiB/s 838.2 MiB/s
twofish-xts 256b 475.1 MiB/s 470.3 MiB/s
aes-xts 512b 4264.1 MiB/s 4283.3 MiB/s
serpent-xts 512b 849.1 MiB/s 831.6 MiB/s
twofish-xts 512b 473.3 MiB/s 471.6 MiB/s
Code: Select all
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 414129 iterations per second for 256-bit key
PBKDF2-sha256 523764 iterations per second for 256-bit key
PBKDF2-sha512 344926 iterations per second for 256-bit key
PBKDF2-ripemd160 286183 iterations per second for 256-bit key
PBKDF2-whirlpool 179550 iterations per second for 256-bit key
argon2i 4 iterations, 484395 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 487877 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 71.9 MiB/s 81.6 MiB/s
serpent-cbc 128b 37.0 MiB/s 90.7 MiB/s
twofish-cbc 128b 82.5 MiB/s 83.3 MiB/s
aes-cbc 256b 56.1 MiB/s 63.0 MiB/s
serpent-cbc 256b 37.0 MiB/s 90.8 MiB/s
twofish-cbc 256b 82.5 MiB/s 83.3 MiB/s
aes-xts 256b 82.0 MiB/s 79.0 MiB/s
serpent-xts 256b 84.2 MiB/s 84.0 MiB/s
twofish-xts 256b 77.6 MiB/s 77.7 MiB/s
aes-xts 512b 61.9 MiB/s 61.3 MiB/s
serpent-xts 512b 84.3 MiB/s 83.9 MiB/s
twofish-xts 512b 77.4 MiB/s 77.5 MiB/s

Code: Select all
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 112798 iterations per second for 256-bit key
PBKDF2-sha256 140034 iterations per second for 256-bit key
PBKDF2-sha512 45957 iterations per second for 256-bit key
PBKDF2-ripemd160 87849 iterations per second for 256-bit key
PBKDF2-whirlpool 34062 iterations per second for 256-bit key
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 28.1 MiB/s 28.0 MiB/s
serpent-cbc 128b 16.5 MiB/s 14.4 MiB/s
twofish-cbc 128b 25.9 MiB/s 30.9 MiB/s
aes-cbc 256b 24.3 MiB/s 25.0 MiB/s
serpent-cbc 256b 16.6 MiB/s 16.2 MiB/s
twofish-cbc 256b 29.4 MiB/s 31.3 MiB/s
aes-xts 256b 31.6 MiB/s 31.0 MiB/s
serpent-xts 256b 17.5 MiB/s 15.9 MiB/s
twofish-xts 256b 30.4 MiB/s 29.5 MiB/s
aes-xts 512b 26.7 MiB/s 23.5 MiB/s
serpent-xts 512b 17.5 MiB/s 11.7 MiB/s
twofish-xts 512b 30.0 MiB/s 26.9 MiB/sCode: Select all
CONFIG_CRYPTO
CONFIG_CRYPTO_CRYPTD
CONFIG_CRYPTO_SIMD
CONFIG_CRYPTO_SHA256
CONFIG_CRYPTO_CBC
CONFIG_CRYPTO_ECB
CONFIG_CRYPTO_XTS
CONFIG_CRYPTO_AES
CONFIG_CRYPTO_SERPENT
CONFIG_CRYPTO_SERPENT_SSE2_X86_64
CONFIG_CRYPTO_TWOFISH
CONFIG_CRYPTO_TWOFISH_COMMON
CONFIG_CRYPTO_TWOFISH_X86_64_3WAY
Code: Select all
# How long to wait for each timeout (in seconds).
dmcrypt_key_timeout=1
# Max number of checks to perform (see dmcrypt_key_timeout).
#dmcrypt_max_timeout=300
# Number of password retries.
dmcrypt_retries=5

