Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cipher_aead_pkt Struct Reference

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_pktpkt
 Packet containing input and output buffers.
uint8_tad
 Start address of associated data.
uint32_t ad_len
 Size of associated data, in bytes.
uint8_ttag
 Start address of the authentication tag buffer.

Detailed Description

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.

Field Documentation

◆ ad

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.

◆ ad_len

uint32_t cipher_aead_pkt::ad_len

Size of associated data, in bytes.

◆ pkt

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.

◆ tag

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.


The documentation for this struct was generated from the following file: