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_t * | base |
Base cipher information and functions. |
Cipher information.
Allows cipher functions to be called in a generic way.
Definition at line 207 of file cipher.h.
Flag for ciphers that accept many sizes of IV/NONCE.
Definition at line 226 of file cipher.h.
Referenced by cipher_set_iv().
const cipher_base_t* cipher_info_t::base |
Base cipher information and functions.
Definition at line 232 of file cipher.h.
Referenced by cipher_finish(), cipher_free_ctx(), cipher_info_from_values(), cipher_init_ctx(), cipher_setkey(), and cipher_update().
unsigned int cipher_info_t::block_size |
block size, in bytes
Definition at line 229 of file cipher.h.
Referenced by cipher_get_block_size(), and gcm_init().
unsigned int cipher_info_t::iv_size |
IV/NONCE size, in bytes.
For cipher that accept many sizes: recommended size
Definition at line 223 of file cipher.h.
Referenced by cipher_get_iv_size(), cipher_set_iv(), pkcs12_pbe(), pkcs5_pbes2(), and ssl_derive_keys().
unsigned int cipher_info_t::key_length |
Cipher key length, in bits (default length for variable sized ciphers) (Includes parity bits for ciphers like DES).
Definition at line 216 of file cipher.h.
Referenced by cipher_get_key_size(), cipher_info_from_values(), cipher_setkey(), pkcs12_pbe(), pkcs5_pbes2(), and ssl_derive_keys().
Cipher mode (e.g.
POLARSSL_MODE_CBC)
Definition at line 212 of file cipher.h.
Referenced by cipher_finish(), cipher_get_cipher_mode(), cipher_info_from_values(), cipher_setkey(), cipher_update(), ssl_decrypt_buf(), ssl_derive_keys(), ssl_encrypt_buf(), and test_suite_check_padding().
const char* cipher_info_t::name |
Name of the cipher.
Definition at line 219 of file cipher.h.
Referenced by cipher_get_name(), and cipher_info_from_string().
Full cipher identifier (e.g.
POLARSSL_CIPHER_AES_256_CBC)
Definition at line 209 of file cipher.h.
Referenced by cipher_get_type().