1.2.11.4.8 AES_Wrapper_EncryptEcb Function

C

void AES_Wrapper_EncryptEcb(uint8_t *in, uint8_t *out)

Summary

Encrypts one block of data in AES ECB mode.

Description

This function encrypts one block of data, equal to the AES block size (16 bytes), in ECB mode.

Precondition

None.

Parameters

ParamDescription
inPointer to buffer where the data to encrypt is located
outPointer to buffer to store the results of the encryption

Returns

None.

Example

uint8_t in1[16];
uint8_t out1[16];
uint8_t key[16];

AES_Wrapper_SetEncryptEcbKey(key);
AES_Wrapper_EncryptEcb(in1, out1);

Remarks

Input and output buffers must be equal in size (16 bytes).