Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.

  • The test mode will try to hash/cipher data from 16 to 2097152 bytes and check the result with the same operation done by the openssl lib.
  • The bench mode will simply bench x times some operations.

Requirement

You need to have the following options enabled.

  • CONFIG_CRYPTO_USER_API
  • CONFIG_CRYPTO_USER_API_HASH
  • CONFIG_CRYPTO_USER_API_SKCIPHER

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.

  • The test mode will try to cipher data from 16 to 2097152 bytes and check the result with the same operation done by the openssl lib.
  • The bench mode will simply bench x times some operations.

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

About

Tools for testing kernel ciphers and hash algorithm

Resources

License

Releases

No releases published
You can’t perform that action at this time.