OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
mbedtls_chachapoly_context Struct Reference

#include <chachapoly.h>

Collaboration diagram for mbedtls_chachapoly_context:

Public Attributes

mbedtls_chacha20_context chacha20_ctx
 
mbedtls_poly1305_context poly1305_ctx
 
uint64_t aad_len
 
uint64_t ciphertext_len
 
int state
 
mbedtls_chachapoly_mode_t mode
 

Member Data Documentation

◆ aad_len

uint64_t mbedtls_chachapoly_context::aad_len

The length (bytes) of the Additional Authenticated Data.

◆ chacha20_ctx

mbedtls_chacha20_context mbedtls_chachapoly_context::chacha20_ctx

The ChaCha20 context.

◆ ciphertext_len

uint64_t mbedtls_chachapoly_context::ciphertext_len

The length (bytes) of the ciphertext.

◆ mode

mbedtls_chachapoly_mode_t mbedtls_chachapoly_context::mode

Cipher mode (encrypt or decrypt).

◆ poly1305_ctx

mbedtls_poly1305_context mbedtls_chachapoly_context::poly1305_ctx

The Poly1305 context.

◆ state

int mbedtls_chachapoly_context::state

The current state of the context.


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