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
| Field | Description |
|---|---|
| p_nonce | Pointer to the nonce used for encryption. |
| nonceSz | The size of p_nonce, between 7 and 13 bytes. |
| tagSz | The tag size used for encryption, must be a value in {4, 6, 8, 10, 12, 14, 16}. |
| p_aad | Pointer to the additional authentication data. |
| aadSz | The size of p_aad, can be 0 if p_aad is NULL. |
| dataSz | The size of the data to be encrypted / decrypted. |
