Skip to content

Instantly share code, notes, and snippets.

@ceremcem
Created October 17, 2017 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceremcem/3736cb684291df9c333539ce164ec1fd to your computer and use it in GitHub Desktop.
Save ceremcem/3736cb684291df9c333539ce164ec1fd to your computer and use it in GitHub Desktop.
cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 1020015 iterations per second for 256-bit key
PBKDF2-sha256 1133595 iterations per second for 256-bit key
PBKDF2-sha512 881156 iterations per second for 256-bit key
PBKDF2-ripemd160 758738 iterations per second for 256-bit key
PBKDF2-whirlpool 536630 iterations per second for 256-bit key
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 522.5 MiB/s 2229.3 MiB/s
serpent-cbc 128b 40.5 MiB/s 390.7 MiB/s
twofish-cbc 128b 136.6 MiB/s 276.5 MiB/s
aes-cbc 256b 386.2 MiB/s 1729.0 MiB/s
serpent-cbc 256b 70.5 MiB/s 445.7 MiB/s
twofish-cbc 256b 147.1 MiB/s 284.8 MiB/s
aes-xts 256b 1975.1 MiB/s 1980.5 MiB/s
serpent-xts 256b 449.5 MiB/s 432.6 MiB/s
twofish-xts 256b 276.6 MiB/s 277.6 MiB/s
aes-xts 512b 1494.2 MiB/s 1486.1 MiB/s
serpent-xts 512b 441.6 MiB/s 424.8 MiB/s
twofish-xts 512b 232.0 MiB/s 266.1 MiB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment