OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
mbedtls_cipher_info_t Struct Reference

#include <cipher.h>

Collaboration diagram for mbedtls_cipher_info_t:

Public Attributes

mbedtls_cipher_type_t type
 
mbedtls_cipher_mode_t mode
 
unsigned int key_bitlen
 
const char * name
 
unsigned int iv_size
 
int flags
 
unsigned int block_size
 
const mbedtls_cipher_base_tbase
 

Detailed Description

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

Member Data Documentation

◆ base

const mbedtls_cipher_base_t* mbedtls_cipher_info_t::base

Struct for base cipher information and functions.

◆ block_size

unsigned int mbedtls_cipher_info_t::block_size

The block size, in Bytes.

◆ flags

int mbedtls_cipher_info_t::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.

◆ iv_size

unsigned int mbedtls_cipher_info_t::iv_size

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

◆ key_bitlen

unsigned int mbedtls_cipher_info_t::key_bitlen

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

◆ mode

mbedtls_cipher_mode_t mbedtls_cipher_info_t::mode

The cipher mode. For example, MBEDTLS_MODE_CBC.

◆ name

const char* mbedtls_cipher_info_t::name

Name of the cipher.

◆ type

mbedtls_cipher_type_t mbedtls_cipher_info_t::type

Full cipher identifier. For example, MBEDTLS_CIPHER_AES_256_CBC.


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