I am running v1.7 of cryptodev module on a TI Sitara CPU and I am getting the 
following failures from the cryptodev tests, all the rest pass.

Can anyone please give me some idea of where I should be looking for the 
problem(s).

Thanks,
Andrew

# ./cipher-aead-srtp
[ 1355.484635]       omap_aes_crypt: request size is not exact amount of AES 
blocks
[ 1355.492597] cryptodev: cipher-aead-srt[1094] (srtp_auth_n_crypt:493): 
cryptodev_cipher_encrypt: -22
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


# ./fullspeed
Testing NULL cipher:
        Encrypting in chunks of 512 bytes: done. 87.13 MB in 5.00 secs: 17.43 
MB/sec
        Encrypting in chunks of 1024 bytes: done. 185.70 MB in 5.00 secs: 37.14 
MB/sec
        Encrypting in chunks of 2048 bytes: done. 371.29 MB in 5.00 secs: 74.26 
MB/sec
        Encrypting in chunks of 4096 bytes: done. 580.24 MB in 5.00 secs: 
116.05 MB/sec
        Encrypting in chunks of 8192 bytes: done. 955.54 MB in 5.00 secs: 
191.10 MB/sec
        Encrypting in chunks of 16384 bytes: done. 1.40 GB in 5.00 secs: 0.28 
GB/sec
        Encrypting in chunks of 32768 bytes: done. 1.86 GB in 5.00 secs: 0.37 
GB/sec
        Encrypting in chunks of 65536 bytes: done. 2.22 GB in 5.00 secs: 0.44 
GB/sec

Testing AES-128-CBC cipher:
        Encrypting in chunks of 512 bytes: done. 26.21 MB in 5.00 secs: 5.24 
MB/sec
        Encrypting in chunks of 1024 bytes: done. 45.68 MB in 5.00 secs: 9.14 
MB/sec
        Encrypting in chunks of 2048 bytes: done. 63.53 MB in 5.00 secs: 12.71 
MB/sec
        Encrypting in chunks of 4096 bytes: done. 74.78 MB in 5.00 secs: 14.96 
MB/sec
        Encrypting in chunks of 8192 bytes: done. 98.47 MB in 5.00 secs: 19.69 
MB/sec
        Encrypting in chunks of 16384 bytes: done. 85.64 MB in 5.00 secs: 17.13 
MB/sec
        Encrypting in chunks of 32768 bytes: done. 98.44 MB i[ 1655.946819] 
edma-dma-engine edma-dma-engine.0: Exceeded max SG segments 17 > 16
n 5.00 secs: 19.[ 1655.954941] omap-aes 53500000.aes: IN prep_slave_sg() failed
68 MB/sec
        Encrypting in chunks[ 1655.964418] cryptodev: fullspeed[1107] 
(waitfor:271): error from async request: -22
 of 65536 bytes:[ 1655.973353] cryptodev: fullspeed[1107] (hash_n_crypt:98): 
CryptoAPI failure: -22
 ioctl(CIOCCRYPT): Invalid argument


# ./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

_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to