mbed TLS  Version 2.4.1
SSL/TLS Library for the Embedded Space
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mbedtls_cipher_context_t Struct Reference

Generic cipher context. More...

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 context's key has been initialised for.
 
void(* add_padding )(unsigned char *output, size_t olen, size_t data_len)
 Padding functions to use, if relevant for cipher mode.
 
int(* get_padding )(unsigned char *input, size_t ilen, size_t *data_len)
 
unsigned char unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH]
 Buffer for data that hasn't been encrypted yet.
 
size_t unprocessed_len
 Number of bytes that still need processing.
 
unsigned char iv [MBEDTLS_MAX_IV_LENGTH]
 Current IV or NONCE_COUNTER for CTR-mode.
 
size_t iv_size
 IV size in bytes (for ciphers with variable-length IVs)
 
void * cipher_ctx
 Cipher-specific context.
 

Description

Generic cipher context.