I am trying to use cryptodev on the AM3352 using kernel 3.14.26 as in the latest EZSDK.
I am getting failures from the cryptodev self tests that suggest problems in the kernel drivers.
Can anyone confirm successful use of the hardware crypto and in particular successful passing of the cryptodev tests?
The failures I get are as follows, all other tests pass.
# ./cipher-aead-srtp
ioctl(CIOCAUTHCRYPT): Invalid argument
# ./cipher-gcm
test_crypto: 119
ioctl(CIOCGSESSION): Invalid argument
# ./cipher_comp
requested cipher CRYPTO_AES_CBC and mac CRYPTO_SHA1_HMAC, got cipher cbc(aes) with driver cbc-aes-omap and hash with driver
fail for datalen 16, IVs do not match!
test_crypto() failed for datalen of 16
# ./hmac_comp
requested cipher CRYPTO_AES_CBC and mac CRYPTO_SHA1_HMAC, got cipher cbc(aes) with driver cbc-aes-omap and hash hmac(sha1) with driver omap-hmac-sha1
fail for datalen 16, updated IVs do not match!
fail for datalen 0x10, MACs do not match!
wrong mac: \xd7\xd1\xa6\xef\x0a\x38\xe1\x09\x45\xe1\x8b\x48\x88\xaa\xa9\x23\x4c\xd4\x67\xd1
right mac: \xd7\xd1\xa6\xef\x0a\x38\xe1\x09\x45\xe1\x8b\x48\x88\xaa\xa9\x23\x4c\xd4\x67\xd1
test_crypto() failed for datalen of 16