AnsweredAssumed Answered

AES CMAC encryption returning bad_context error

Question asked by nehowig.tyler on Feb 10, 2014
Latest reply on Mar 14, 2014 by Ruggero Susella

I'm currently implementing AES CMAC crypto using the STM32 crypto library from ST and I'm unable to get the example code to work without returning an error.  I'm using an STM32F103.

The example encrypt routine in aes_cmac.h is always returning 3103 (bad_context) as the error_status during the AES_CMAC_Encrypt_Finish() function.

I can't figure out why it keeps generating this error, I've read through the user guide for the STM32 crypto library and nothing jumps out at me as to why it doesn't like the context.

Any help would be GREATLY appreciated.


Tyler Nehowig