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

#include <lcx_cipher.h>

Public Attributes

cx_err_t(* enc_func )(const uint8_t *in_block, uint8_t *out_block)
 Encryption function. More...
 
cx_err_t(* dec_func )(const uint8_t *in_block, uint8_t *out_block)
 Decryption function. More...
 
cx_err_t(* ctr_func )(const cipher_key_t *ctx_key, size_t len, size_t *nc_off, uint8_t *nonce_counter, uint8_t *stream_block, const uint8_t *input, uint8_t *output)
 Encryption in CTR mode. More...
 
cx_err_t(* setkey_func )(const cipher_key_t *ctx_key, uint32_t operation, const uint8_t *key, uint32_t key_bitlen)
 Set key for encryption or decryption. More...
 
cx_err_t(* ctx_reset )(void)
 Reset. More...
 

Detailed Description

Base cipher information

Definition at line 50 of file lcx_cipher.h.

Member Data Documentation

◆ ctr_func

cx_err_t(* cx_cipher_base_t::ctr_func) (const cipher_key_t *ctx_key, size_t len, size_t *nc_off, uint8_t *nonce_counter, uint8_t *stream_block, const uint8_t *input, uint8_t *output)

Encryption in CTR mode.

Definition at line 53 of file lcx_cipher.h.

◆ ctx_reset

cx_err_t(* cx_cipher_base_t::ctx_reset) (void)

Reset.

Definition at line 64 of file lcx_cipher.h.

◆ dec_func

cx_err_t(* cx_cipher_base_t::dec_func) (const uint8_t *in_block, uint8_t *out_block)

Decryption function.

Definition at line 52 of file lcx_cipher.h.

◆ enc_func

cx_err_t(* cx_cipher_base_t::enc_func) (const uint8_t *in_block, uint8_t *out_block)

Encryption function.

Definition at line 51 of file lcx_cipher.h.

◆ setkey_func

cx_err_t(* cx_cipher_base_t::setkey_func) (const cipher_key_t *ctx_key, uint32_t operation, const uint8_t *key, uint32_t key_bitlen)

Set key for encryption or decryption.

Definition at line 60 of file lcx_cipher.h.


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