История изменений
Исправление aquadon, (текущая версия) :
Это ПК. Сейчас скину с ноута.
$ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 2614902 iterations per second for 256-bit key
PBKDF2-sha256 4843307 iterations per second for 256-bit key
PBKDF2-sha512 1963625 iterations per second for 256-bit key
PBKDF2-ripemd160 981812 iterations per second for 256-bit key
PBKDF2-whirlpool 772147 iterations per second for 256-bit key
argon2i 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1231.7 MiB/s 3940.8 MiB/s
serpent-cbc 128b 119.3 MiB/s 769.9 MiB/s
twofish-cbc 128b 247.2 MiB/s 446.4 MiB/s
aes-cbc 256b 982.9 MiB/s 3165.2 MiB/s
serpent-cbc 256b 123.6 MiB/s 773.2 MiB/s
twofish-cbc 256b 256.8 MiB/s 447.0 MiB/s
aes-xts 256b 3155.6 MiB/s 3205.8 MiB/s
serpent-xts 256b 755.4 MiB/s 742.7 MiB/s
twofish-xts 256b 443.1 MiB/s 444.1 MiB/s
aes-xts 512b 2840.4 MiB/s 2825.1 MiB/s
serpent-xts 512b 758.9 MiB/s 742.8 MiB/s
twofish-xts 512b 443.4 MiB/s 442.4 MiB/s
UPD. Вот ноут.
$ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 2811195 iterations per second for 256-bit key
PBKDF2-sha256 4364520 iterations per second for 256-bit key
PBKDF2-sha512 1340890 iterations per second for 256-bit key
PBKDF2-ripemd160 970903 iterations per second for 256-bit key
PBKDF2-whirlpool 616084 iterations per second for 256-bit key
argon2i 8 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 8 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1457.5 MiB/s 5336.5 MiB/s
serpent-cbc 128b 89.9 MiB/s 660.4 MiB/s
twofish-cbc 128b 228.2 MiB/s 423.3 MiB/s
aes-cbc 256b 1137.9 MiB/s 4299.1 MiB/s
serpent-cbc 256b 92.2 MiB/s 661.7 MiB/s
twofish-cbc 256b 232.8 MiB/s 423.1 MiB/s
aes-xts 256b 3867.9 MiB/s 3865.8 MiB/s
serpent-xts 256b 680.7 MiB/s 640.3 MiB/s
twofish-xts 256b 409.7 MiB/s 386.5 MiB/s
aes-xts 512b 3069.9 MiB/s 3495.5 MiB/s
serpent-xts 512b 682.1 MiB/s 639.7 MiB/s
twofish-xts 512b 411.2 MiB/s 411.9 MiB/s
Использую aes-xts 256b
и там и там.
Исправление aquadon, :
Это ПК. Сейчас скину с ноута.
$ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 2614902 iterations per second for 256-bit key
PBKDF2-sha256 4843307 iterations per second for 256-bit key
PBKDF2-sha512 1963625 iterations per second for 256-bit key
PBKDF2-ripemd160 981812 iterations per second for 256-bit key
PBKDF2-whirlpool 772147 iterations per second for 256-bit key
argon2i 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1231.7 MiB/s 3940.8 MiB/s
serpent-cbc 128b 119.3 MiB/s 769.9 MiB/s
twofish-cbc 128b 247.2 MiB/s 446.4 MiB/s
aes-cbc 256b 982.9 MiB/s 3165.2 MiB/s
serpent-cbc 256b 123.6 MiB/s 773.2 MiB/s
twofish-cbc 256b 256.8 MiB/s 447.0 MiB/s
aes-xts 256b 3155.6 MiB/s 3205.8 MiB/s
serpent-xts 256b 755.4 MiB/s 742.7 MiB/s
twofish-xts 256b 443.1 MiB/s 444.1 MiB/s
aes-xts 512b 2840.4 MiB/s 2825.1 MiB/s
serpent-xts 512b 758.9 MiB/s 742.8 MiB/s
twofish-xts 512b 443.4 MiB/s 442.4 MiB/s
Исходная версия aquadon, :
$ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 2614902 iterations per second for 256-bit key
PBKDF2-sha256 4843307 iterations per second for 256-bit key
PBKDF2-sha512 1963625 iterations per second for 256-bit key
PBKDF2-ripemd160 981812 iterations per second for 256-bit key
PBKDF2-whirlpool 772147 iterations per second for 256-bit key
argon2i 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 1231.7 MiB/s 3940.8 MiB/s
serpent-cbc 128b 119.3 MiB/s 769.9 MiB/s
twofish-cbc 128b 247.2 MiB/s 446.4 MiB/s
aes-cbc 256b 982.9 MiB/s 3165.2 MiB/s
serpent-cbc 256b 123.6 MiB/s 773.2 MiB/s
twofish-cbc 256b 256.8 MiB/s 447.0 MiB/s
aes-xts 256b 3155.6 MiB/s 3205.8 MiB/s
serpent-xts 256b 755.4 MiB/s 742.7 MiB/s
twofish-xts 256b 443.1 MiB/s 444.1 MiB/s
aes-xts 512b 2840.4 MiB/s 2825.1 MiB/s
serpent-xts 512b 758.9 MiB/s 742.8 MiB/s
twofish-xts 512b 443.4 MiB/s 442.4 MiB/s