Tools for testing kernel ciphers and hash algorithm
Testing and benching kernel ciphers and hash could be a difficult task. So there is a set of tools for helping doing that.
Three way to use kernel crypto API are used:
autoreconf --install
./configure
make
The af_alg_test tool permit to test AES and MD5/SHA1. Two mode are proposed, test and bench.
You need to have the following options enabled.
af_alg_test [md5|sha1|aes] [check|number_of_request]
The cryptodev_test tool permit to test AES. Two mode are proposed, test and bench.
You need to have the cryptodev module
cryptodev_test test aes number_of_request
cryptodev_test bench aes number_of_request
The kernel module named cryptotest, check cbc(aes), md5, sha1 using the crypto API.
make
insmod cryptotest.ko
The lukstest tool goal is to test if cipher/decipher works via cryptsetup/dm-crupt.
You need to have the cryptsetup tool installed.
./lukstest