|
Data Accelerator Offload
|
#include <dao_liquid_crypto.h>
Data Fields | |
| enum dao_lc_pqc_alg | alg |
| enum dao_lc_pqc_op_type | op_type |
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.
| 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.
| 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.
| uint8_t* pub_key |
The public key for encryption/verification
Definition at line 1508 of file dao_liquid_crypto.h.
| uint8_t* priv_key |
The private key for decryption/sign generation
Definition at line 1510 of file dao_liquid_crypto.h.
| 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 { ... } keygen |
The key generation operation
| const uint8_t* enc_key |
The encapsulated key
Definition at line 1517 of file dao_liquid_crypto.h.
| uint8_t* shared_secret |
The shared secret
Definition at line 1519 of file dao_liquid_crypto.h.
| uint8_t* ciphertext |
The ciphertext
Definition at line 1521 of file dao_liquid_crypto.h.
| struct { ... } encap |
The encapsulation operation
| const uint8_t* dec_key |
The decapsulation key
Definition at line 1526 of file dao_liquid_crypto.h.
| const uint8_t* ciphertext |
The ciphertext
Definition at line 1528 of file dao_liquid_crypto.h.
| struct { ... } decap |
The decapsulation operation
| const uint8_t* msg |
The message to be signed
The message to be verified
Definition at line 1535 of file dao_liquid_crypto.h.
| 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.
| const uint8_t* ctx |
The context for signing
The context for verification
Definition at line 1539 of file dao_liquid_crypto.h.
| uint16_t ctx_len |
The length of the context
Definition at line 1541 of file dao_liquid_crypto.h.
| const uint8_t* priv_key |
The private key for signing
Definition at line 1543 of file dao_liquid_crypto.h.
| uint8_t* signature |
The signature to be generated
Definition at line 1545 of file dao_liquid_crypto.h.
| struct { ... } sign |
The signature generation operation
| const uint8_t* signature |
The signature to be verified
Definition at line 1558 of file dao_liquid_crypto.h.
| const uint8_t* pub_key |
The public key for verification
Definition at line 1560 of file dao_liquid_crypto.h.
| struct { ... } verify |
The signature verification operation