Embedded SDK
Embedded SDK
Public Attributes | List of all members
cx_cipher_context_t Struct Reference

#include <lcx_cipher.h>

Collaboration diagram for cx_cipher_context_t:
Collaboration graph
[legend]

Public Attributes

const cx_cipher_info_tcipher_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_tcipher_key
 Cipher-specific context. More...
 

Detailed Description

Generic cipher context

Definition at line 81 of file lcx_cipher.h.

Member Data Documentation

◆ add_padding

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.

◆ cipher_info

const cx_cipher_info_t* cx_cipher_context_t::cipher_info

Cipher information.

Definition at line 82 of file lcx_cipher.h.

◆ cipher_key

const cipher_key_t* cx_cipher_context_t::cipher_key

Cipher-specific context.

Definition at line 95 of file lcx_cipher.h.

◆ get_padding

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.

◆ iv

uint8_t cx_cipher_context_t::iv[MAX_IV_LENGTH]

Initiaization vector.

Definition at line 91 of file lcx_cipher.h.

◆ iv_size

size_t cx_cipher_context_t::iv_size

Length of the initialization vector.

Definition at line 92 of file lcx_cipher.h.

◆ key_bitlen

uint32_t cx_cipher_context_t::key_bitlen

Key size in bits.

Definition at line 83 of file lcx_cipher.h.

◆ mode

uint32_t cx_cipher_context_t::mode

Mode of operation: ECB, CBC, CTR.

Definition at line 93 of file lcx_cipher.h.

◆ operation

uint32_t cx_cipher_context_t::operation

Operation: encryption or decryption.

Definition at line 84 of file lcx_cipher.h.

◆ sig

uint8_t cx_cipher_context_t::sig[MAX_BLOCK_LENGTH]

Last block to be verified.

Definition at line 94 of file lcx_cipher.h.

◆ unprocessed_data

uint8_t cx_cipher_context_t::unprocessed_data[MAX_BLOCK_LENGTH]

Data to process.

Definition at line 89 of file lcx_cipher.h.

◆ unprocessed_len

size_t cx_cipher_context_t::unprocessed_len

Length of data to process.

Definition at line 90 of file lcx_cipher.h.


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