Structure defining ChaChaPoly configuration.

This structure defines the ChaChaPoly configuration required for the operation which includes type of operation, input message, length of input message, key configuration structure, and so on.

Public Attributes#

const uint8_t *

Pointer to the input message.

uint16_t

Length of the message.

const uint8_t *

Pointer to the Initialization vector.

const uint8_t *

Pointer to the additional data.

uint16_t

Length of the additional data.

Public Attribute Documentation#

encrypt_decrypt#

sl_si91x_chachapoly_type_t sl_si91x_chachapoly_config_t::encrypt_decrypt

Encryption or decryption.


chachapoly_mode#

sl_si91x_chachapoly_mode_t sl_si91x_chachapoly_config_t::chachapoly_mode

ChachaPoly mode.


dma_use#

sl_si91x_chachapoly_dma_use_t sl_si91x_chachapoly_config_t::dma_use

DMA Disable or Enable.


msg#

const uint8_t* sl_si91x_chachapoly_config_t::msg

Pointer to the input message.


msg_length#

uint16_t sl_si91x_chachapoly_config_t::msg_length

Length of the message.


nonce#

const uint8_t* sl_si91x_chachapoly_config_t::nonce

Pointer to the Initialization vector.


ad

const uint8_t* sl_si91x_chachapoly_config_t::ad

Pointer to the additional data.


ad_length#

uint16_t sl_si91x_chachapoly_config_t::ad_length

Length of the additional data.


key_config#

sl_si91x_chachapoly_key_config_t sl_si91x_chachapoly_config_t::key_config

Key configuration.