cancel
Showing results for 
Search instead for 
Did you mean: 

STM Cryptographic Library V4 (CCM)

peit
Visitor

Good day.
I use in my project transfer of information between devices, for encryption and authentication I use the CCM mode (self-written library) as the encryption base I use AES-ECB.
A device from the G0 series was added to my project, STM Cryptographic Library V4 used there and everything is fine, except for one thing, with the same input data, the encrypted data is absolutely the same as in my library, but the MIC is different and I can't understand what the reason is. my library is built entirely on the standard NIST SP 800‑38C.

accordingly, according to a similar scheme:

CCM.png

 

 

 

 

 

If anyone understands CCM, can you direct me to what might be wrong in my implementation (I am ready to provide the code) 

 

in addition, I noticed some oddities in the STM Cryptographic Library , when SINGLE CALL USAGE, can specify ADD of 8 or 16 bytes, and when MULTIPLE CALLS USAGE, then if specify a length of 8 bytes, then the MIC is not output at all, and if specify 16 bytes, then only 8 bytes are output

0 REPLIES 0