RetroArch
Public Attributes | List of all members
mbedtls_cipher_context_t Struct Reference

#include <cipher.h>

Collaboration diagram for mbedtls_cipher_context_t:
[legend]

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
 
voidcipher_ctx
 

Detailed Description

Generic cipher context.

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 cipher mode

◆ cipher_ctx

void* mbedtls_cipher_context_t::cipher_ctx

Cipher-specific context

◆ cipher_info

const mbedtls_cipher_info_t* mbedtls_cipher_context_t::cipher_info

Information about the associated cipher

◆ get_padding

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

◆ iv

unsigned char mbedtls_cipher_context_t::iv[MBEDTLS_MAX_IV_LENGTH]

Current IV or NONCE_COUNTER for CTR-mode

◆ iv_size

size_t mbedtls_cipher_context_t::iv_size

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

◆ key_bitlen

int mbedtls_cipher_context_t::key_bitlen

Key length to use

◆ operation

mbedtls_operation_t mbedtls_cipher_context_t::operation

Operation that the context's key has been initialised for

◆ unprocessed_data

unsigned char mbedtls_cipher_context_t::unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH]

Buffer for data that hasn't been encrypted yet

◆ unprocessed_len

size_t mbedtls_cipher_context_t::unprocessed_len

Number of bytes that still need processing


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