Karsten,
A good reference would be the Wiki for DM814x cryptodriver.
http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support
There is a section at the bottom on using cryptotest from the OCF software package. The app cryptotest allows you to run an encrypt/decrypt sequence multiple times on various block sizes. The parameter "count" is number of times to run the encrypt/decrypt sequence and "size" is for the block size.
root@dm814x-evm:~# ./cryptotest --help
usage: ./cryptotest [-czsbvVKD] [-d dev] [-a algorithm] [count] [size ...]
where algorithm is one of:
des 3des (default) blf (blowfish) cast skj (skipjack)
aes (aka rijndael) aes192 aes256 arc4
md5 md5_hmac sha1 sha1_hmac sha256 sha256_hmac
sha384 sha384_hmac sha512 sha512_hmac
count is the number of encrypt/decrypt ops to do
size is the number of bytes of text to encrypt+decrypt
-c check the results (slows timing)
-d use specific device
-z run all available algorithms on a variety of sizes
-v be verbose
-b mark operations for batching
-p profile kernel crypto operation (must be root)
-V swap IV
-K swap KEY
-D swap DATA
root@dm814x-evm:~#
root@dm814x-evm:~# ./cryptotest -c -a aes 128 64
0.055 sec, 256 aes crypts, 64 bytes, 296925 byte/sec, 2.3 Mb/sec
root@dm814x-evm:~#
In the example above, the aes algorithm runs 256 times (128 encrypt/128 decrypt) on a block size of 64.
The -c switch performs a check of the data to see that the data is correct.
You can also have a look in http://processors.wiki.ti.com/index.php/Cryptography_Users_Guide
SHA Hash
This example will perform a SHA1 hash function on the 10M file of random data (rnddata). If the file doesn't exist, it is generated.
Best regards,
Pavel