PolarSSL v1.1.4
Data Fields
cipher_context_t Struct Reference

Generic cipher context. More...

#include <cipher.h>

Collaboration diagram for cipher_context_t:
Collaboration graph
[legend]

Data Fields

const cipher_info_tcipher_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.
unsigned char unprocessed_data [POLARSSL_MAX_IV_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.
void * cipher_ctx
 Cipher-specific context.

Detailed Description

Generic cipher context.

Definition at line 174 of file cipher.h.


Field Documentation

Cipher-specific context.

Definition at line 194 of file cipher.h.

Information about the associated cipher.

Definition at line 176 of file cipher.h.

Referenced by cipher_get_block_size(), cipher_get_cipher_mode(), cipher_get_iv_size(), cipher_get_name(), cipher_get_operation(), and cipher_get_type().

Current IV or NONCE_COUNTER for CTR-mode.

Definition at line 191 of file cipher.h.

Key length to use.

Definition at line 179 of file cipher.h.

Referenced by cipher_get_key_size().

Operation that the context's key has been initialised for.

Definition at line 182 of file cipher.h.

Referenced by cipher_get_operation().

Buffer for data that hasn't been encrypted yet.

Definition at line 185 of file cipher.h.

Number of bytes that still need processing.

Definition at line 188 of file cipher.h.


The documentation for this struct was generated from the following file: