It is a stand alone version of linux Crypto API tcrypt module. The one can modify sources to test self-developed algorithms. It is also possible to test algorithms already registered in kernel as with usual tcrypt.
Just make
it!
To run type sudo insmod tcryptext [param=value param=...]
.
There are five optional parametres that could be provided to that module:
- mode (int): run specific test. See tcrypt.c:do_test():1025 for conreete values. Supresses alg, type and mask parametres if provided. Defaults to 0
- alg (string): specific algorithm name. If mode parameter value equals 0, checks if the algorithm with specified name, type and mask exists in kernel. Defaults to null
- type, mask (uints): type and mask of the algorithm to check. See some crypto_alloc_* function definition for details. Both defaults to 0
- sec (uint): length in seconds of speed tests (defaults to zero which uses CPU cycles instead)