The device I am using is SAMD51G19A.
I used ASF's AES SYNC driver to use AES / GCM.
The ciphertext value is displayed normally, but the authentication tag value is displayed abnormally.
Below is the code I wrote
BYTE key[16] = {0}; memset(aad, 0xAA, sizeof(aad)); |
This is an output
KEY(16) : 0000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 IV(16) : 0000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 AAD(16) : 0000 | AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA PT(32) : 0000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0001 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CT(32) : 0000 | A3 B2 2B 84 49 AF AF BC D6 C0 9F 2C FA 9D E2 BE 0001 | 93 8F 8B BF 23 58 63 D0 CE 02 84 27 22 FD 50 34 TAG(16) : 0000 | AB 93 F1 48 03 E0 BE EE A7 5E FB A5 CD F0 03 96 |
In other programs, the authentication tag value is shown below
How can I fix this?