Embedded SDK
Embedded SDK
|
#include <lcx_cipher.h>
Public Attributes | |
const cx_cipher_info_t * | cipher_info |
Cipher information. More... | |
uint32_t | key_bitlen |
Key size in bits. More... | |
uint32_t | operation |
Operation: encryption or decryption. More... | |
void(* | add_padding )(uint8_t *output, size_t out_len, size_t data_len) |
Padding function. More... | |
cx_err_t(* | get_padding )(uint8_t *input, size_t in_len, size_t *data_len) |
Check the padding. More... | |
uint8_t | unprocessed_data [MAX_BLOCK_LENGTH] |
Data to process. More... | |
size_t | unprocessed_len |
Length of data to process. More... | |
uint8_t | iv [MAX_IV_LENGTH] |
Initiaization vector. More... | |
size_t | iv_size |
Length of the initialization vector. More... | |
uint32_t | mode |
Mode of operation: ECB, CBC, CTR. More... | |
uint8_t | sig [MAX_BLOCK_LENGTH] |
Last block to be verified. More... | |
const cipher_key_t * | cipher_key |
Cipher-specific context. More... | |
Generic cipher context
Definition at line 81 of file lcx_cipher.h.
void(* cx_cipher_context_t::add_padding) (uint8_t *output, size_t out_len, size_t data_len) |
Padding function.
Definition at line 85 of file lcx_cipher.h.
const cx_cipher_info_t* cx_cipher_context_t::cipher_info |
Cipher information.
Definition at line 82 of file lcx_cipher.h.
const cipher_key_t* cx_cipher_context_t::cipher_key |
Cipher-specific context.
Definition at line 95 of file lcx_cipher.h.
cx_err_t(* cx_cipher_context_t::get_padding) (uint8_t *input, size_t in_len, size_t *data_len) |
Check the padding.
Definition at line 86 of file lcx_cipher.h.
uint8_t cx_cipher_context_t::iv[MAX_IV_LENGTH] |
Initiaization vector.
Definition at line 91 of file lcx_cipher.h.
size_t cx_cipher_context_t::iv_size |
Length of the initialization vector.
Definition at line 92 of file lcx_cipher.h.
uint32_t cx_cipher_context_t::key_bitlen |
Key size in bits.
Definition at line 83 of file lcx_cipher.h.
uint32_t cx_cipher_context_t::mode |
Mode of operation: ECB, CBC, CTR.
Definition at line 93 of file lcx_cipher.h.
uint32_t cx_cipher_context_t::operation |
Operation: encryption or decryption.
Definition at line 84 of file lcx_cipher.h.
uint8_t cx_cipher_context_t::sig[MAX_BLOCK_LENGTH] |
Last block to be verified.
Definition at line 94 of file lcx_cipher.h.
uint8_t cx_cipher_context_t::unprocessed_data[MAX_BLOCK_LENGTH] |
Data to process.
Definition at line 89 of file lcx_cipher.h.
size_t cx_cipher_context_t::unprocessed_len |
Length of data to process.
Definition at line 90 of file lcx_cipher.h.