mbedtls_cipher_info_t
cipher.h
mbedtls_cipher_type_t mbedtls_cipher_type_t mbedtls_cipher_info_t::type type mbedtls_cipher_info_t::type

Full cipher identifier. For example, MBEDTLS_CIPHER_AES_256_CBC.

mbedtls_cipher_get_type
mbedtls_cipher_mode_t mbedtls_cipher_mode_t mbedtls_cipher_info_t::mode mode mbedtls_cipher_info_t::mode

The cipher mode. For example, MBEDTLS_MODE_CBC.

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

mbedtls_cipher_get_key_bitlen
const char * const char* mbedtls_cipher_info_t::name name mbedtls_cipher_info_t::name

Name of the cipher.

mbedtls_cipher_get_name
unsigned int unsigned int mbedtls_cipher_info_t::iv_size iv_size mbedtls_cipher_info_t::iv_size

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

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

unsigned int unsigned int mbedtls_cipher_info_t::block_size block_size mbedtls_cipher_info_t::block_size

The block size, in Bytes.

mbedtls_cipher_get_block_size
const mbedtls_cipher_base_t * const mbedtls_cipher_base_t* mbedtls_cipher_info_t::base base mbedtls_cipher_info_t::base

Struct for base cipher information and functions.

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

- mbedtls_cipher_info_t
  base
- mbedtls_cipher_info_t
  block_size
- mbedtls_cipher_info_t
  flags
- mbedtls_cipher_info_t
  iv_size
- mbedtls_cipher_info_t
  key_bitlen
- mbedtls_cipher_info_t
  mode
- mbedtls_cipher_info_t
  name
- mbedtls_cipher_info_t
  type