Mbed OS Reference
Loading...
Searching...
No Matches
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. More...
 
int key_bitlen
 Key length to use. More...
 
mbedtls_operation_t operation
 Operation that the key of the context has been initialized for. More...
 
unsigned char unprocessed_data [16]
 Buffer for input that has not been processed yet. More...
 
size_t unprocessed_len
 Number of Bytes that have not been processed yet. More...
 
unsigned char iv [16]
 Current IV or NONCE_COUNTER for CTR-mode, data unit (or sector) number for XTS-mode. More...
 
size_t iv_size
 IV size in Bytes, for ciphers with variable-length IVs. More...
 
void * cipher_ctx
 The cipher-specific context. More...
 
mbedtls_cmac_context_tcmac_ctx
 CMAC-specific context. More...
 

Detailed Description

Generic cipher context.

Definition at line 317 of file cipher.h.

Field Documentation

◆ cipher_info

const mbedtls_cipher_info_t* cipher_info

Information about the associated cipher.

Definition at line 320 of file cipher.h.

◆ key_bitlen

int key_bitlen

Key length to use.

Definition at line 323 of file cipher.h.

◆ operation

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

Definition at line 328 of file cipher.h.

◆ unprocessed_data

unsigned char unprocessed_data[16]

Buffer for input that has not been processed yet.

Definition at line 339 of file cipher.h.

◆ unprocessed_len

size_t unprocessed_len

Number of Bytes that have not been processed yet.

Definition at line 342 of file cipher.h.

◆ iv

unsigned char iv[16]

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

Definition at line 346 of file cipher.h.

◆ iv_size

size_t iv_size

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

Definition at line 349 of file cipher.h.

◆ cipher_ctx

void* cipher_ctx

The cipher-specific context.

Definition at line 352 of file cipher.h.

◆ cmac_ctx

CMAC-specific context.

Definition at line 356 of file cipher.h.