Hi Nordic Team,
NRF crypto example AES CCM main.c code follows NIST standards and Pycryptodome library follows the same. I tried encryption on both platform but the results will be different, So How can I match the outputs. Suggest any methods to sync the same.
The Outputs are given below
C Code Output
Plain text (hex) (len: 3) ----41 42 43
Encrypted text (hex) (len: 3) ----86 9E 06
MAC (hex) (len: 4) ---- 06 C6 68 5D
Python Code Output
Plain text -- 414243
Ciphertext: --e1 29 d1
MAC:-- bc 3a b0 c8
I hereby attached the python code. The parameters of AES CCM are same for both python and C code