mbed TLS v3.1.0
Data Fields
mbedtls_cipher_context_t Struct Reference

#include <cipher.h>

Collaboration diagram for mbedtls_cipher_context_t:
Collaboration graph
[legend]

Data Fields

const mbedtls_cipher_info_tprivate_cipher_info
 
int private_key_bitlen
 
mbedtls_operation_t private_operation
 
void(* private_add_padding )(unsigned char *output, size_t olen, size_t data_len)
 
int(* private_get_padding )(unsigned char *input, size_t ilen, size_t *data_len)
 
unsigned char private_unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH]
 
size_t private_unprocessed_len
 
unsigned char private_iv [MBEDTLS_MAX_IV_LENGTH]
 
size_t private_iv_size
 
void * private_cipher_ctx
 
mbedtls_cmac_context_tprivate_cmac_ctx
 
unsigned char private_psa_enabled
 

Detailed Description

Generic cipher context.

Definition at line 321 of file cipher.h.

Field Documentation

void(* mbedtls_cipher_context_t::private_add_padding)(unsigned char *output, size_t olen, size_t data_len)

Padding functions to use, if relevant for the specific cipher mode.

Definition at line 338 of file cipher.h.

void* mbedtls_cipher_context_t::private_cipher_ctx

The cipher-specific context.

Definition at line 356 of file cipher.h.

const mbedtls_cipher_info_t* mbedtls_cipher_context_t::private_cipher_info

Information about the associated cipher.

Definition at line 324 of file cipher.h.

mbedtls_cmac_context_t* mbedtls_cipher_context_t::private_cmac_ctx

CMAC-specific context.

Definition at line 360 of file cipher.h.

int(* mbedtls_cipher_context_t::private_get_padding)(unsigned char *input, size_t ilen, size_t *data_len)

Definition at line 339 of file cipher.h.

unsigned char mbedtls_cipher_context_t::private_iv[MBEDTLS_MAX_IV_LENGTH]

Current IV or NONCE_COUNTER for CTR-mode, data unit (or sector) number for XTS-mode.

Definition at line 350 of file cipher.h.

size_t mbedtls_cipher_context_t::private_iv_size

IV size in Bytes, for ciphers with variable-length IVs.

Definition at line 353 of file cipher.h.

int mbedtls_cipher_context_t::private_key_bitlen

Key length to use.

Definition at line 327 of file cipher.h.

mbedtls_operation_t mbedtls_cipher_context_t::private_operation

Operation that the key of the context has been initialized for.

Definition at line 332 of file cipher.h.

unsigned char mbedtls_cipher_context_t::private_psa_enabled

Indicates whether the cipher operations should be performed by Mbed TLS' own crypto library or an external implementation of the PSA Crypto API. This is unset if the cipher context was established through mbedtls_cipher_setup(), and set if it was established through mbedtls_cipher_setup_psa().

Definition at line 371 of file cipher.h.

unsigned char mbedtls_cipher_context_t::private_unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH]

Buffer for input that has not been processed yet.

Definition at line 343 of file cipher.h.

size_t mbedtls_cipher_context_t::private_unprocessed_len

Number of Bytes that have not been processed yet.

Definition at line 346 of file cipher.h.


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