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

#include <dao_liquid_crypto.h>

Data Fields

struct { 
 
   uint16_t   cipher_auth_payload_len 
 
   uint16_t   iv_len 
 
   uint16_t   aad_len 
 
   uint16_t   digest_len 
 
sym 
 
struct { 
 
   uint16_t   mod_len 
 
   uint16_t   exp_len 
 
   uint16_t   msg_len 
 
rsa 
 
struct { 
 
   uint32_t   rand_len 
 
rng 
 
struct { 
 
   bool   is_ecc_enabled 
 
   enum dao_liquid_crypto_ec_curve_type   curve_id 
 
   uint16_t   pkey_len 
 
   uint16_t   pubkey_x_len 
 
   uint16_t   pubkey_y_len 
 
   uint16_t   digest_len 
 
   uint16_t   nonce_len 
 
   uint16_t   sign_r_len 
 
   uint16_t   sign_s_len 
 
ecc 
 
bool cmd_qp
 

Detailed Description

Liquid Crypto Feature Parameters.

This structure is used to store the feature parameters of the liquid crypto device. The feature parameters are used to calculate the size of the maximum segment size.

Definition at line 602 of file dao_liquid_crypto.h.

Field Documentation

◆ cipher_auth_payload_len

uint16_t cipher_auth_payload_len

Cipher and auth payload length.

  • Cipher only: length of cipher text.
  • Auth only: length of data to be authenticated.
  • Cipher and auth: length of data with possible overlap.
  • AEAD: length of data for authenticated encryption.

Definition at line 618 of file dao_liquid_crypto.h.

◆ iv_len

uint16_t iv_len

IV length

Definition at line 620 of file dao_liquid_crypto.h.

◆ aad_len

uint16_t aad_len

AAD length

Definition at line 622 of file dao_liquid_crypto.h.

◆ digest_len

uint16_t digest_len

Digest length

Definition at line 624 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } sym

Symmetric parameters. The parameters are used to calculate the size of the maximum segment size for symmetric operations.

For using following opcodes the corresponding parameters must be set:

  • DAO_LC_SYM_OPCODE_FC: Flexi Crypto
    See also
    DAO_LC_SYM_FC_CTX

◆ mod_len

uint16_t mod_len

Modulus length

Definition at line 638 of file dao_liquid_crypto.h.

◆ exp_len

uint16_t exp_len

Exponent length

Definition at line 640 of file dao_liquid_crypto.h.

◆ msg_len

uint16_t msg_len

Message length

Definition at line 642 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } rsa

RSA asymmetric parameters. The parameters are used to calculate the size of the maximum segment size for asymmetric operations.

For using following APIs the corresponding parameters must be set:

◆ rand_len

uint32_t rand_len

Random data length

Definition at line 651 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } rng

Random number generation parameters. The parameters are used to calculate the size of the maximum segment size for random number generation operations.

◆ is_ecc_enabled

bool is_ecc_enabled

Specifies whether ECC enabled or not

Definition at line 664 of file dao_liquid_crypto.h.

◆ curve_id

Curve ID

Definition at line 666 of file dao_liquid_crypto.h.

◆ pkey_len

uint16_t pkey_len

Private key length

Definition at line 668 of file dao_liquid_crypto.h.

◆ pubkey_x_len

uint16_t pubkey_x_len

Public key x coordinate length

Definition at line 670 of file dao_liquid_crypto.h.

◆ pubkey_y_len

uint16_t pubkey_y_len

Public key y coordinate length

Definition at line 672 of file dao_liquid_crypto.h.

◆ nonce_len

uint16_t nonce_len

Nonce length

Definition at line 676 of file dao_liquid_crypto.h.

◆ sign_r_len

uint16_t sign_r_len

r sign component length

Definition at line 678 of file dao_liquid_crypto.h.

◆ sign_s_len

uint16_t sign_s_len

s sign component length

Definition at line 680 of file dao_liquid_crypto.h.

◆ [struct]

struct { ... } ecc

ECDSA asymmetric parameters. The parameters are used to calculate the size of the maximum segment size for ECDSA operations.

For using following APIs the corresponding parameters must be set:

◆ cmd_qp

bool cmd_qp

Specifies whether the size calculation is for the command queue pair. If true, the size is calculated specifically for the command queue pair, ignoring the symmetric and RSA asymmetric parameters. If false, the size is calculated for the data queue pair using the symmetric and RSA asymmetric parameters provided above.

Definition at line 690 of file dao_liquid_crypto.h.


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