Knight KE / Mbed OS Game_Master
Embed: (wiki syntax)

« Back to documentation index

mbedtls_cipher_info_t Struct Reference

mbedtls_cipher_info_t Struct Reference

Cipher information. More...

#include <cipher.h>

Data Fields

mbedtls_cipher_type_t type
 Full cipher identifier.
mbedtls_cipher_mode_t mode
 The cipher mode.
unsigned int key_bitlen
 The cipher key length, in bits.
const char * name
 Name of the cipher.
unsigned int iv_size
 IV or nonce size, in Bytes.
int 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 block_size
 The block size, in Bytes.
const mbedtls_cipher_base_tbase
 Struct for base cipher information and functions.

Detailed Description

Cipher information.

Allows calling cipher functions in a generic way.

Definition at line 228 of file cipher.h.


Field Documentation

Struct for base cipher information and functions.

Definition at line 262 of file cipher.h.

unsigned int block_size

The block size, in Bytes.

Definition at line 259 of file cipher.h.

int 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 256 of file cipher.h.

unsigned int iv_size

IV or nonce size, in Bytes.

For ciphers that accept variable IV sizes, this is the recommended size.

Definition at line 250 of file cipher.h.

unsigned int 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 241 of file cipher.h.

The cipher mode.

For example, MBEDTLS_MODE_CBC.

Definition at line 235 of file cipher.h.

const char* name

Name of the cipher.

Definition at line 244 of file cipher.h.

Full cipher identifier.

For example, MBEDTLS_CIPHER_AES_256_CBC.

Definition at line 232 of file cipher.h.