ReactOS  0.4.15-dev-4857-g47842d7
mbedtls_cipher_context_t Struct Reference

#include <cipher.h>

Collaboration diagram for mbedtls_cipher_context_t:

Public Attributes

const mbedtls_cipher_info_tcipher_info
int key_bitlen
mbedtls_operation_t operation
void(* add_padding )(unsigned char *output, size_t olen, size_t data_len)
int(* get_padding )(unsigned char *input, size_t ilen, size_t *data_len)
unsigned char unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH]
size_t unprocessed_len
unsigned char iv [MBEDTLS_MAX_IV_LENGTH]
size_t iv_size

Detailed Description

Generic cipher context.

Definition at line 309 of file cipher.h.

Member Data Documentation

◆ add_padding

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

◆ cipher_ctx

void* mbedtls_cipher_context_t::cipher_ctx

The cipher-specific context.

Definition at line 344 of file cipher.h.

◆ cipher_info

const mbedtls_cipher_info_t* mbedtls_cipher_context_t::cipher_info

Information about the associated cipher.

Definition at line 312 of file cipher.h.

◆ get_padding

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

Definition at line 327 of file cipher.h.

◆ iv

unsigned char mbedtls_cipher_context_t::iv[MBEDTLS_MAX_IV_LENGTH]

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

Definition at line 338 of file cipher.h.

◆ iv_size

size_t mbedtls_cipher_context_t::iv_size

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

Definition at line 341 of file cipher.h.

◆ key_bitlen

int mbedtls_cipher_context_t::key_bitlen

Key length to use.

Definition at line 315 of file cipher.h.

◆ operation

mbedtls_operation_t mbedtls_cipher_context_t::operation

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

Definition at line 320 of file cipher.h.

◆ unprocessed_data

unsigned char mbedtls_cipher_context_t::unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH]

Buffer for input that has not been processed yet.

Definition at line 331 of file cipher.h.

◆ unprocessed_len

size_t mbedtls_cipher_context_t::unprocessed_len

Number of Bytes that have not been processed yet.

Definition at line 334 of file cipher.h.

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