Why is the M480 AES sample output different from the network tool? http://testprotect.com/appendix/AEScalc

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

31 May 2021, 16:06

In the case of a network tool:
Key: 000102030405060708090a0b0c0d0e0f
Plaintext: 00112233445566778899aabbccddeeff
Ciphertext: 69c4e0d86a7b0430d8cdb78070b4c55a

The key input corresponding to the AES register:
CRYPTO_AESn_KEY0 = 0x00010203
CRYPTO_AESn_KEY1 = 0x04050607
CRYPTO_AESn_KEY2 = 0x08090a0b
CRYPTO_AESn_KEY3 = 0x0c0d0e0f

Input data:
CRYPTO_AES_DATIN = { 0x00112233, 0x44556677, 0x8899aabb, 0xccddeeff }

The obtained output data:
CRYPTO_AES_DATOUT = { 0x69c4e0d8, 0x6a7b0430, 0x d8cdb780, 0x70b4c55a }

It should be noted that the data processing of AES is handled by the variable type of WORD. There are different LSBs and MSBs from the variable type of BYTE.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests