Thanks Aymen! :smileyhappy:
I have loaded the kernel image with the caam driver. And I get the output related to caam as below. I am able to load the tests of various algos by loading the tcrypt.ko module and I get the various test results. But I am not sure if the results are by using CAAM or without it. I can only check /proc/interrupts either before loading the test module (tcrypt.ko) or after the tests are finished. And on these times, it shows the same value of caam_jr. So I was not sure if CAAM is actually being used.
But can't I activate the tests such that it tests when it is building the image?
This is what I get when I load the image.:
caam caam.0: device ID = 0x0a16010000000000
caam caam.0: job rings = 2, qi = 0
alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-caam)
caam caam.0: authenc-hmac-md5-cbc-aes-caam
alg: No test for authenc(hmac(sha1),cbc(aes)) (authenc-hmac-sha1-cbc-aes-caam)
caam caam.0: authenc-hmac-sha1-cbc-aes-caam
alg: No test for authenc(hmac(sha224),cbc(aes)) (authenc-hmac-sha224-cbc-aes-caam)
caam caam.0: authenc-hmac-sha224-cbc-aes-caam
alg: No test for authenc(hmac(sha256),cbc(aes)) (authenc-hmac-sha256-cbc-aes-caam)
caam caam.0: authenc-hmac-sha256-cbc-aes-caam
alg: No test for authenc(hmac(md5),cbc(des3_ede)) (authenc-hmac-md5-cbc-des3_ede-caam)
caam caam.0: authenc-hmac-md5-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc-hmac-sha1-cbc-des3_ede-caam)
caam caam.0: authenc-hmac-sha1-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha224),cbc(des3_ede)) (authenc-hmac-sha224-cbc-des3_ede-caam)
caam caam.0: authenc-hmac-sha224-cbc-des3_ede-caam
alg: No test for authenc(hmac(sha256),cbc(des3_ede)) (authenc-hmac-sha256-cbc-des3_ede-caam)
caam caam.0: authenc-hmac-sha256-cbc-des3_ede-caam
alg: No test for authenc(hmac(md5),cbc(des)) (authenc-hmac-md5-cbc-des-caam)
caam caam.0: authenc-hmac-md5-cbc-des-caam
alg: No test for authenc(hmac(sha1),cbc(des)) (authenc-hmac-sha1-cbc-des-caam)
caam caam.0: authenc-hmac-sha1-cbc-des-caam
alg: No test for authenc(hmac(sha224),cbc(des)) (authenc-hmac-sha224-cbc-des-caam)
caam caam.0: authenc-hmac-sha224-cbc-des-caam
alg: No test for authenc(hmac(sha256),cbc(des)) (authenc-hmac-sha256-cbc-des-caam)
caam caam.0: authenc-hmac-sha256-cbc-des-caam
caam caam.0: cbc-aes-caam
caam caam.0: cbc-3des-caam
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
caam caam.0: cbc-des-caam
platform caam_jr.0: registering rng-caam
platform caam_sm.0: caam_sm_test: 8-byte key test match OK
platform caam_sm.0: caam_sm_test: 16-byte key test match OK
platform caam_sm.0: caam_sm_test: 32-byte key test match OK
platform caam_secvio.0: security violation service handlers armed
This I get on loading tcrypt.ko:
# insmod tcrypt.ko sec=1 mode=200
testing speed of ecb(aes) encryption
test 0 (128 bit key, 16 byte blocks): 174761 operations in 1 seconds (2796176 bytes)
test 1 (128 bit key, 64 byte blocks): 134576 operations in 1 seconds (8612864 bytes)
test 2 (128 bit key, 256 byte blocks): 69308 operations in 1 seconds (17742848 bytes)
test 3 (128 bit key, 1024 byte blocks): 23574 operations in 1 seconds (24139776 bytes)
test 4 (128 bit key, 8192 byte blocks): 3199 operations in 1 seconds (26206208 bytes)
test 5 (192 bit key, 16 byte blocks): 170484 operations in 1 seconds (2727744 bytes)
test 6 (192 bit key, 64 byte blocks): 127817 operations in 1 seconds (8180288 bytes)
test 7 (192 bit key, 256 byte blocks): 62334 operations in 1 seconds (15957504 bytes)
test 8 (192 bit key, 1024 byte blocks): 20441 operations in 1 seconds (20931584 bytes)
test 9 (192 bit key, 8192 byte blocks): 2721 operations in 1 seconds (22290432 bytes)
test 10 (256 bit key, 16 byte blocks): 170418 operations in 1 seconds (2726688 bytes)
test 11 (256 bit key, 64 byte blocks): 121865 operations in 1 seconds (7799360 bytes)
test 12 (256 bit key, 256 byte blocks): 56648 operations in 1 seconds (14501888 bytes)
test 13 (256 bit key, 1024 byte blocks): 18052 operations in 1 seconds (18485248 bytes)
test 14 (256 bit key, 8192 byte blocks): 2396 operations in 1 seconds (19628032 bytes)
testing speed of ecb(aes) decryption
test 0 (128 bit key, 16 byte blocks): 175668 operations in 1 seconds (2810688 bytes)
test 1 (128 bit key, 64 byte blocks): 136039 operations in 1 seconds (8706496 bytes)
test 2 (128 bit key, 256 byte blocks): 70902 operations in 1 seconds (18150912 bytes)
test 3 (128 bit key, 1024 byte blocks): 24321 operations in 1 seconds (24904704 bytes)
...
...
Thanks! :smileyhappy: