AES-ECB Decrypt

The AES-ECB Decrypt mode of the AES command is used to convert encrypted text back to clear text.

Table 1. AES-ECB Decrypt

Opcode
(1 Byte)

Mode
(1 Byte)

KeyID
(2 Bytes)

Data
(16 Bytes)

Comments
0x51

0x01
0x41
0x81
0xC1

0x00 0[Slot] Any 16 bytes of AES Encrypted data

Decrypt key in Position 0
Decrypt key in Position 1
Decrypt key in Position 2
Encrypt key in Position 3

0x01 0xFF FF Any 16 bytes of ClearText data Decryption key located in TempKey
Table 2. AES Decrypt Output Response
Name Size (Bytes) Notes
Response 1 If the operation fails, the ouptut is a one-byte error code.
16 If the operation is successful, the device will output 16 bytes of clear text data.