takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

mbedtls_cipher_context_t Struct Reference

mbedtls_cipher_context_t Struct Reference

Generic cipher context. More...

#include <cipher.h>

Data Fields

const mbedtls_cipher_info_tcipher_info
 Information about the associated cipher.
int key_bitlen
 Key length to use.
mbedtls_operation_t operation
 Operation that the key of the context has been initialized for.
void(* add_padding )(unsigned char *output, size_t olen, size_t data_len)
 Padding functions to use, if relevant for the specific cipher mode.
unsigned char unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH]
 Buffer for input that has not been processed yet.
size_t unprocessed_len
 Number of Bytes that have not been processed yet.
unsigned char iv [MBEDTLS_MAX_IV_LENGTH]
 Current IV or NONCE_COUNTER for CTR-mode, data unit (or sector) number for XTS-mode.
size_t iv_size
 IV size in Bytes, for ciphers with variable-length IVs.
void * cipher_ctx
 The cipher-specific context.
mbedtls_cmac_context_tcmac_ctx
 CMAC-specific context.

Detailed Description

Generic cipher context.

Definition at line 281 of file cipher.h.


Field Documentation

void(* 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 298 of file cipher.h.

void* cipher_ctx

The cipher-specific context.

Definition at line 316 of file cipher.h.

Information about the associated cipher.

Definition at line 284 of file cipher.h.

CMAC-specific context.

Definition at line 320 of file cipher.h.

unsigned char iv[MBEDTLS_MAX_IV_LENGTH]

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

Definition at line 310 of file cipher.h.

size_t iv_size

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

Definition at line 313 of file cipher.h.

Key length to use.

Definition at line 287 of file cipher.h.

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

Definition at line 292 of file cipher.h.

unsigned char unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH]

Buffer for input that has not been processed yet.

Definition at line 303 of file cipher.h.

Number of Bytes that have not been processed yet.

Definition at line 306 of file cipher.h.