mbed TLS v3.1.0
Data Fields
mbedtls_cipher_info_t Struct Reference

#include <cipher.h>

Data Fields

mbedtls_cipher_type_t private_type
 
mbedtls_cipher_mode_t private_mode
 
unsigned int private_key_bitlen
 
const char * private_name
 
unsigned int private_iv_size
 
int private_flags
 
unsigned int private_block_size
 
const mbedtls_cipher_base_tprivate_base
 

Detailed Description

Cipher information. Allows calling cipher functions in a generic way.

Note
The library does not support custom cipher info structures, only built-in structures returned by the functions mbedtls_cipher_info_from_string(), mbedtls_cipher_info_from_type(), mbedtls_cipher_info_from_values(), mbedtls_cipher_info_from_psa().

Definition at line 279 of file cipher.h.

Field Documentation

const mbedtls_cipher_base_t* mbedtls_cipher_info_t::private_base

Struct for base cipher information and functions.

Definition at line 314 of file cipher.h.

unsigned int mbedtls_cipher_info_t::private_block_size

The block size, in Bytes.

Definition at line 311 of file cipher.h.

int mbedtls_cipher_info_t::private_flags

Bitflag comprised of MBEDTLS_CIPHER_VARIABLE_IV_LEN and MBEDTLS_CIPHER_VARIABLE_KEY_LEN indicating whether the cipher supports variable IV or variable key sizes, respectively.

Definition at line 308 of file cipher.h.

unsigned int mbedtls_cipher_info_t::private_iv_size

IV or nonce size, in Bytes. For ciphers that accept variable IV sizes, this is the recommended size.

Definition at line 302 of file cipher.h.

unsigned int mbedtls_cipher_info_t::private_key_bitlen

The cipher key length, in bits. This is the default length for variable sized ciphers. Includes parity bits for ciphers like DES.

Definition at line 293 of file cipher.h.

mbedtls_cipher_mode_t mbedtls_cipher_info_t::private_mode

The cipher mode. For example, MBEDTLS_MODE_CBC.

Definition at line 287 of file cipher.h.

const char* mbedtls_cipher_info_t::private_name

Name of the cipher.

Definition at line 296 of file cipher.h.

mbedtls_cipher_type_t mbedtls_cipher_info_t::private_type

Full cipher identifier. For example, MBEDTLS_CIPHER_AES_256_CBC.

Definition at line 284 of file cipher.h.


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