Hi,
According to the AM5708 (and 5706) Datasheet http://www.ti.com/lit/ds/symlink/am5708.pdf there is support for hardware accelerated crypto support for the following algorithms:
Supports cryptographic cores – AES – 128/192/256-bits key sizes – 3DES – 56/112/168-bits key sizes – MD5, SHA1 – SHA2 – 224/256/384/512
According to the SDK documentation the software support for linux is limited to AES, DES and DES3DES only for the AM57X / DRA7, no mention of SHA algorithms:
* AM335X : MD5, SHA1, SHA224, SHA256, AES, DES * AM437X : MD5, SHA1, SAH224, SHA256, SHA384, SHA512, AES, DES, DES3DES * AM57x/DRA7 : AES, DES, DES3DES
http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_Kernel_Drivers.html#crypto
Question:
Is there SHA support (expected) for Linux for the AM57xx family?
I have tested the following using cryptodev examples: :
root@:~# ./aes-example
Got cbc(aes) with driver cbc-aes-omap
Got cbc(aes) with driver cbc-aes-omap
AES Test passed
root@:~# ./sha-example
Got sha1 with driver sha1-generic
Note: This is not an accelerated cipher
digest: 2f:d4:e1:c6:7a:2d:28:fc:ed:84:9e:e1:bb:76:e7:39:1b:93:eb:12:
Note: meassured using: time -v openssl speed -evp sha256 -engine cryptodev
using sha1 iso sha256 seems to have hardware support though