Data Accelerator Offload
Loading...
Searching...
No Matches
Data Fields
dao_lc_pqc_op Struct Reference

#include <dao_liquid_crypto.h>

Data Fields

enum dao_lc_pqc_alg alg
 
enum dao_lc_pqc_op_type op_type
 

Detailed Description

The liquid crypto PQC ML KEM/DSA operation structure.

This structure defines the ML KEM/DSA operation to be performed on the liquid crypto device. It includes the algorithm to be used, the type of operation (key generation, encapsulation, decapsulation, sign, or verify), and the necessary parameters for each operation type. The lengths of the keys, ciphertexts, shared secrets and signatures are defined by the ML KEM/DSA algorithm being used and are defined as macros DAO_LC_ML_KEM_* for ML-KEM and DAO_LC_ML_DSA_* for ML-DSA. Applications must allocate buffers of the appropriate lengths before calling the enqueue operation.

Definition at line 1499 of file dao_liquid_crypto.h.

Field Documentation

◆ alg

enum dao_lc_pqc_alg alg

The PQC ML KEM/DSA algorithm to be used

Definition at line 1501 of file dao_liquid_crypto.h.

◆ op_type

enum dao_lc_pqc_op_type op_type

The type of PQC ML KEM/DSA operation

Definition at line 1503 of file dao_liquid_crypto.h.

◆ pub_key [1/2]

uint8_t* pub_key

The public key for encryption/verification

Definition at line 1508 of file dao_liquid_crypto.h.

◆ priv_key [1/2]

uint8_t* priv_key

The private key for decryption/sign generation

Definition at line 1510 of file dao_liquid_crypto.h.

◆ seed

uint8_t* seed

The optional seed of length DAO_LC_ML_KEYPAIR_SEED_LEN

Definition at line 1512 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } keygen

The key generation operation

◆ enc_key

const uint8_t* enc_key

The encapsulated key

Definition at line 1517 of file dao_liquid_crypto.h.

◆ shared_secret

uint8_t* shared_secret

The shared secret

Definition at line 1519 of file dao_liquid_crypto.h.

◆ ciphertext [1/2]

uint8_t* ciphertext

The ciphertext

Definition at line 1521 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } encap

The encapsulation operation

◆ dec_key

const uint8_t* dec_key

The decapsulation key

Definition at line 1526 of file dao_liquid_crypto.h.

◆ ciphertext [2/2]

const uint8_t* ciphertext

The ciphertext

Definition at line 1528 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } decap

The decapsulation operation

◆ msg

const uint8_t* msg

The message to be signed

The message to be verified

Definition at line 1535 of file dao_liquid_crypto.h.

◆ msg_len

uint16_t msg_len

The length of the message to be signed

The length of the message to be verified

Definition at line 1537 of file dao_liquid_crypto.h.

◆ ctx

const uint8_t* ctx

The context for signing

The context for verification

Definition at line 1539 of file dao_liquid_crypto.h.

◆ ctx_len

uint16_t ctx_len

The length of the context

Definition at line 1541 of file dao_liquid_crypto.h.

◆ priv_key [2/2]

const uint8_t* priv_key

The private key for signing

Definition at line 1543 of file dao_liquid_crypto.h.

◆ signature [1/2]

uint8_t* signature

The signature to be generated

Definition at line 1545 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } sign

The signature generation operation

◆ signature [2/2]

const uint8_t* signature

The signature to be verified

Definition at line 1558 of file dao_liquid_crypto.h.

◆ pub_key [2/2]

const uint8_t* pub_key

The public key for verification

Definition at line 1560 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } verify

The signature verification operation


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