montjoie / cryptotest

Tools for testing kernel ciphers and hash algorithm
GNU General Public License v2.0
14 stars 3 forks source link

cryptotest

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:

installation

autoreconf --install

./configure

make

AF_ALG

The af_alg_test tool permit to test AES and MD5/SHA1. Two mode are proposed, test and bench.

Requirement

You need to have the following options enabled.

Usage:

af_alg_test [md5|sha1|aes] [check|number_of_request]

cryptodev

The cryptodev_test tool permit to test AES. Two mode are proposed, test and bench.

Requirement

You need to have the cryptodev module

Usage:

cryptodev_test test aes number_of_request

cryptodev_test bench aes number_of_request

kernel

The kernel module named cryptotest, check cbc(aes), md5, sha1 using the crypto API.

Usage

make
insmod cryptotest.ko

lukstest

The lukstest tool goal is to test if cipher/decipher works via cryptsetup/dm-crupt.

Requirement

You need to have the cryptsetup tool installed.

Usage

./lukstest