AES-ECB Encrypt

In the AES-ECB Encrypt mode, 16 bytes of clear text are expected in the input stream and the device will output 16 bytes of encrypted text.

Table 1. AES-ECB Encrypt

Opcode
(1 Byte)

Mode
(1 Byte)

KeyID
(2 Bytes)

Data
(16 Bytes)

Comments
0x51

0x00
0x40
0x80
0xC0

0x00 0[Slot] Any 16 bytes of ClearText data

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

0x00 0xFF FF Any 16 bytes of ClearText data Encryption key located in TempKey
Table 2. AES Encrypt 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 encrypted text.