PolarSSL v1.3.9
|
Generic cipher context. More...
#include <cipher.h>
Data Fields | |
const cipher_info_t * | cipher_info |
Information about the associated cipher. | |
int | key_length |
Key length to use. | |
operation_t | operation |
Operation that the context's key has been initialised for. | |
void(* | add_padding )(unsigned char *output, size_t olen, size_t data_len) |
Padding functions to use, if relevant for cipher mode. | |
int(* | get_padding )(unsigned char *input, size_t ilen, size_t *data_len) |
unsigned char | unprocessed_data [POLARSSL_MAX_BLOCK_LENGTH] |
Buffer for data that hasn't been encrypted yet. | |
size_t | unprocessed_len |
Number of bytes that still need processing. | |
unsigned char | iv [POLARSSL_MAX_IV_LENGTH] |
Current IV or NONCE_COUNTER for CTR-mode. | |
size_t | iv_size |
IV size in bytes (for ciphers with variable-length IVs) | |
void * | cipher_ctx |
Cipher-specific context. | |
void(* cipher_context_t::add_padding)(unsigned char *output, size_t olen, size_t data_len) |
void* cipher_context_t::cipher_ctx |
const cipher_info_t* cipher_context_t::cipher_info |
Information about the associated cipher.
Definition at line 260 of file cipher.h.
Referenced by cipher_get_block_size(), cipher_get_cipher_mode(), cipher_get_iv_size(), cipher_get_key_size(), cipher_get_name(), cipher_get_operation(), and cipher_get_type().
int(* cipher_context_t::get_padding)(unsigned char *input, size_t ilen, size_t *data_len) |
unsigned char cipher_context_t::iv[POLARSSL_MAX_IV_LENGTH] |
size_t cipher_context_t::iv_size |
IV size in bytes (for ciphers with variable-length IVs)
Definition at line 282 of file cipher.h.
Referenced by cipher_get_iv_size().
operation_t cipher_context_t::operation |
Operation that the context's key has been initialised for.
Definition at line 266 of file cipher.h.
Referenced by cipher_get_operation().
unsigned char cipher_context_t::unprocessed_data[POLARSSL_MAX_BLOCK_LENGTH] |
size_t cipher_context_t::unprocessed_len |