Example program to test AES-GCM functionality. Used for a workshop

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

cipher_info_t Struct Reference

cipher_info_t Struct Reference

Cipher information. More...

#include <cipher.h>

Data Fields

cipher_type_t type
 Full cipher identifier (e.g.
cipher_mode_t mode
 Cipher mode (e.g.
unsigned int key_length
 Cipher key length, in bits (default length for variable sized ciphers) (Includes parity bits for ciphers like DES)
const char * name
 Name of the cipher.
unsigned int iv_size
 IV/NONCE size, in bytes.
int accepts_variable_iv_size
 Flag for ciphers that accept many sizes of IV/NONCE.
unsigned int block_size
 block size, in bytes
const cipher_base_tbase
 Base cipher information and functions.

Detailed Description

Cipher information.

Allows cipher functions to be called in a generic way.

Definition at line 216 of file cipher.h.


Field Documentation

Flag for ciphers that accept many sizes of IV/NONCE.

Definition at line 235 of file cipher.h.

Base cipher information and functions.

Definition at line 241 of file cipher.h.

unsigned int block_size

block size, in bytes

Definition at line 238 of file cipher.h.

unsigned int iv_size

IV/NONCE size, in bytes.

For cipher that accept many sizes: recommended size

Definition at line 232 of file cipher.h.

unsigned int key_length

Cipher key length, in bits (default length for variable sized ciphers) (Includes parity bits for ciphers like DES)

Definition at line 225 of file cipher.h.

cipher_mode_t mode

Cipher mode (e.g.

POLARSSL_MODE_CBC)

Definition at line 221 of file cipher.h.

const char* name

Name of the cipher.

Definition at line 228 of file cipher.h.

cipher_type_t type

Full cipher identifier (e.g.

POLARSSL_CIPHER_AES_256_CBC)

Definition at line 218 of file cipher.h.