mbedtls_cipher_context_t Struct Reference

Generic cipher context. More...

#include <cipher.h>

Collaboration diagram for mbedtls_cipher_context_t:
Collaboration graph
[legend]

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.
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.

Detailed Description

Generic cipher context.

Definition at line 214 of file cipher.h.


Field Documentation

Cipher-specific context.

Definition at line 243 of file cipher.h.

unsigned char mbedtls_cipher_context_t::iv[MBEDTLS_MAX_IV_LENGTH]

Current IV or NONCE_COUNTER for CTR-mode.

Definition at line 237 of file cipher.h.

IV size in bytes (for ciphers with variable-length IVs).

Definition at line 240 of file cipher.h.

Referenced by mbedtls_cipher_get_iv_size().

Key length to use.

Definition at line 219 of file cipher.h.

Operation that the context's key has been initialised for.

Definition at line 222 of file cipher.h.

Referenced by mbedtls_cipher_get_operation().

unsigned char mbedtls_cipher_context_t::unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH]

Buffer for data that hasn't been encrypted yet.

Definition at line 231 of file cipher.h.

Number of bytes that still need processing.

Definition at line 234 of file cipher.h.


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

Generated on 30 Jun 2016 for mbed TLS v2.3.0 by  doxygen 1.6.1