CMAC not working

Fernando Elena Benavente fernando.elena.benavente at gmv.com
Tue Oct 11 10:50:54 UTC 2022


Hi guys, Im triying to use the EVP_MAC  OpenSSL API with the CMAC_AES256, I have been using some testing vectors I found on github, but seems they doesn't work on the CMAC  of OpenSSl, as the expected output of the test vectors are different from the OpenSSL CMAC output.

I attach a screenshot of the test vectors we are using, and how we are introducing it on our key and plaintext variables, the CMAC code is the demo code on OpenSSL github.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221011/3d638990/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 34284 bytes
Desc: Capture.PNG
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221011/3d638990/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture2.PNG
Type: image/png
Size: 111288 bytes
Desc: Capture2.PNG
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221011/3d638990/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture3.PNG
Type: image/png
Size: 2158 bytes
Desc: Capture3.PNG
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221011/3d638990/attachment-0005.png>


More information about the openssl-users mailing list