I've been working with an ATAES132a, learning how to read/write memory over i2c with my SAMD21 xplained pro. To help me learn, I dropped $20 on a AT88CK590 Kit, which allows me to use ACES to test and learn.
I am able to set my keyconfig, generate a NONCE and Encrypt some plain text on the same device. However, I am unable to decrypt the data. I keep getting a MAC error (0x40 MacError).
KeyConfig is set to 0x 01 00 D4 E1
I have previously created a key in Key
I create a NONCE
Encrypt the text
Decrypt and get MAC error
At this point, its unclear to me how the MAC are calculated. Any help is appreciated.