|
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 1807 of file dao_liquid_crypto.h.
| enum dao_lc_pqc_alg alg |
The PQC ML KEM/DSA algorithm to be used
Definition at line 1809 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 1811 of file dao_liquid_crypto.h.
| uint8_t* pub_key |
The public key for encryption/verification
Definition at line 1816 of file dao_liquid_crypto.h.
| uint8_t* priv_key |
The private key for decryption/sign generation
Definition at line 1818 of file dao_liquid_crypto.h.
| uint8_t* seed |
The optional seed of length DAO_LC_ML_KEYPAIR_SEED_LEN. Note: Seeded key generation is currently unsupported. If seed is non-NULL, the API will return -ENOTSUP.
Definition at line 1824 of file dao_liquid_crypto.h.
| struct { ... } keygen |
The key generation operation
| const uint8_t* enc_key |
The encapsulated key
Definition at line 1829 of file dao_liquid_crypto.h.
| uint8_t* shared_secret |
The shared secret
Definition at line 1831 of file dao_liquid_crypto.h.
| uint8_t* ciphertext |
The ciphertext
Definition at line 1833 of file dao_liquid_crypto.h.
| struct { ... } encap |
The encapsulation operation
| const uint8_t* dec_key |
The decapsulation key
Definition at line 1838 of file dao_liquid_crypto.h.
| const uint8_t* ciphertext |
The ciphertext
Definition at line 1840 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 1847 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 1849 of file dao_liquid_crypto.h.
| const uint8_t* ctx |
The context for signing
The context for verification
Definition at line 1851 of file dao_liquid_crypto.h.
| uint16_t ctx_len |
The length of the context
Definition at line 1853 of file dao_liquid_crypto.h.
| const uint8_t* priv_key |
The private key for signing
Definition at line 1855 of file dao_liquid_crypto.h.
| uint8_t* signature |
The signature to be generated
Definition at line 1857 of file dao_liquid_crypto.h.
| struct { ... } sign |
The signature generation operation
| const uint8_t* signature |
The signature to be verified
Definition at line 1870 of file dao_liquid_crypto.h.
| const uint8_t* pub_key |
The public key for verification
Definition at line 1872 of file dao_liquid_crypto.h.
| struct { ... } verify |
The signature verification operation