MW_AES_Ccm_T

Only valid for PIC32CX-BZ2

C

typedef struct MW_AES_Ccm_T{
	uint8_t *p_nonce;
	uint8_t nonceSz;
	uint8_t tagSz;
	uint8_t *p_aad;
	uint16_t aadSz;
	uint16_t dataSz;
}MW_AES_Ccm_T;

Description

Structure for maintaining AES ccm encryption context.

Note

This structure is used to store information about the ccm parameter that is registered for the AES ccm mode calculation.

Field Documentation

FieldDescription
p_noncePointer to the nonce used for encryption.
nonceSzThe size of p_nonce, between 7 and 13 bytes.
tagSzThe tag size used for encryption, must be a value in {4, 6, 8, 10, 12, 14, 16}.
p_aadPointer to the additional authentication data.
aadSzThe size of p_aad, can be 0 if p_aad is NULL.
dataSzThe size of the data to be encrypted / decrypted.