intel / tinycrypt

tinycrypt is a library of cryptographic algorithms with a focus on small, simple implementation.
Other
436 stars 154 forks source link

Fix to AES-CMAC bug #34

Open mpp-owainc opened 5 years ago

mpp-owainc commented 5 years ago

My colleague @mpp-anasa and I discovered that in certain scenarios where tc_cmac_update is called multiple times, an extra padding block can be created causing an invalid MAC to be generated.

I've included a modified version of the 512bit test that will fail on the existing version.