|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Structure encoding IO parameters in AEAD (Authenticated Encryption with Associated Data) scenario like in CCM. More...
#include <zephyr/crypto/cipher.h>
Data Fields | |
| struct cipher_pkt * | pkt |
| Packet containing input and output buffers. | |
| uint8_t * | ad |
| Start address of associated data. | |
| uint32_t | ad_len |
| Size of associated data, in bytes. | |
| uint8_t * | tag |
| Start address of the authentication tag buffer. | |
Structure encoding IO parameters in AEAD (Authenticated Encryption with Associated Data) scenario like in CCM.
App has to furnish valid contents prior to making cipher_ccm_op() call.
| uint8_t* cipher_aead_pkt::ad |
Start address of associated data.
The buffer is supplied by the application and must remain valid for the duration of the operation.
| uint32_t cipher_aead_pkt::ad_len |
Size of associated data, in bytes.
| struct cipher_pkt* cipher_aead_pkt::pkt |
Packet containing input and output buffers.
This is supplied by the application and must remain valid for the duration of the operation.
| uint8_t* cipher_aead_pkt::tag |
Start address of the authentication tag buffer.
For encryption, the driver writes the tag to this application allocated buffer before the operation completes. For decryption, the application supplies the expected tag in this buffer.