Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. [root@arif]# ls /lib/modules/[your kernel version]/kernel/crypto/
  2. algif_rng.ko.xz blowfish_common.ko.xz cmac.ko.xz cts.ko.xz gf128mul.ko.xz michael_mic.ko.xz rsa_generic.ko.xz tgr192.ko.xz xts.ko.xz
  3. ansi_cprng.ko.xz blowfish_generic.ko.xz crc32_generic.ko.xz deflate.ko.xz ghash-generic.ko.xz pcbc.ko.xz salsa20_generic.ko.xz twofish_common.ko.xz zlib.ko.xz
  4. anubis.ko.xz camellia_generic.ko.xz crct10dif_common.ko.xz des_generic.ko.xz jitterentropy_rng.ko.xz pcrypt.ko.xz seed.ko.xz twofish_generic.ko.xz
  5. arc4.ko.xz cast5_generic.ko.xz crct10dif_generic.ko.xz dh_generic.ko.xz khazad.ko.xz rmd128.ko.xz serpent_generic.ko.xz vmac.ko.xz
  6. async_tx cast6_generic.ko.xz cryptd.ko.xz drbg.ko.xz lrw.ko.xz rmd160.ko.xz sha512_generic.ko.xz wp512.ko.xz
  7. authencesn.ko.xz cast_common.ko.xz crypto_null.ko.xz fcrypt.ko.xz mcryptd.ko.xz rmd256.ko.xz tcrypt.ko.xz xcbc.ko.xz
  8. authenc.ko.xz ccm.ko.xz crypto_user.ko.xz gcm.ko.xz md4.ko.xz rmd320.ko.xz tea.ko.xz xor.ko.xz
  9.  
  10. [root@arif arif]# cryptsetup benchmark
  11. # Tests are approximate using memory only (no storage IO).
  12. PBKDF2-sha1 289342 iterations per second for 256-bit key
  13. PBKDF2-sha256 353293 iterations per second for 256-bit key
  14. PBKDF2-sha512 227555 iterations per second for 256-bit key
  15. PBKDF2-ripemd160 233224 iterations per second for 256-bit key
  16. PBKDF2-whirlpool 236165 iterations per second for 256-bit key
  17. argon2i 4 iterations, 917485 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
  18. argon2id 4 iterations, 951672 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
  19. # Algorithm | Key | Encryption | Decryption
  20. aes-cbc 128b 642.2 MiB/s 2495.8 MiB/s
  21. serpent-cbc 128b 89.3 MiB/s 542.6 MiB/s
  22. twofish-cbc 128b 100.4 MiB/s 343.1 MiB/s
  23. aes-cbc 256b 477.2 MiB/s 1979.2 MiB/s
  24. serpent-cbc 256b 89.3 MiB/s 538.9 MiB/s
  25. twofish-cbc 256b 173.3 MiB/s 343.1 MiB/s
  26. aes-xts 256b 1668.0 MiB/s 1664.1 MiB/s
  27. serpent-xts 256b 535.7 MiB/s 523.4 MiB/s
  28. twofish-xts 256b 332.6 MiB/s 339.8 MiB/s
  29. aes-xts 512b 1384.5 MiB/s 1380.7 MiB/s
  30. serpent-xts 512b 539.3 MiB/s 524.4 MiB/s
  31. twofish-xts 512b 335.0 MiB/s 340.1 MiB/s
  32.  
  33. [root@arif]# ciphers="aes-xts serpent-xts anubis-xts"
  34.  
  35. [root@arif]# echo "# Algorithm | Key | Encryption | Decryption";for i in $ciphers ; do cryptsetup benchmark --cipher $i|tail -n 1; done
  36.  
  37. # Algorithm | Key | Encryption | Decryption
  38. aes-xts 256b 1613.9 MiB/s 1642.8 MiB/s
  39. serpent-xts 256b 538.9 MiB/s 521.9 MiB/s
  40. anubis-xts 256b 182.0 MiB/s 182.1 MiB/s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement