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

#include <dao_liquid_crypto.h>

Data Fields

uint64_t iv_source: 1
 
uint64_t aes_key_len: 2
 
uint64_t rsvd_59: 1
 
uint64_t enc_cipher: 4
 
uint64_t auth_input_type: 1
 
uint64_t auth_key_src: 1
 
uint64_t rsvd_50_51: 2
 
uint64_t hash_type: 4
 
uint64_t mac_len: 8
 
uint64_t rsvd_16_39: 24
 
uint64_t hmac_key_sz: 16
 
uint8_t encr_key [32]
 
uint8_t encr_iv [16]
 
uint8_t ipad [64]
 
uint8_t opad [64]
 

Detailed Description

The liquid crypto flexi crypto context.

Definition at line 399 of file dao_liquid_crypto.h.

Field Documentation

◆ iv_source

uint64_t iv_source

Encr_IV_Source: IV source for the operation.

See also
enum dao_lc_fc_iv_src

Must be set to DAO_LC_FC_IV_SRC_OP

Definition at line 406 of file dao_liquid_crypto.h.

◆ aes_key_len

uint64_t aes_key_len

AES_key_len (when enc_cipher = AES*, else ignored)

See also
enum dao_lc_fc_aes_key_len

Definition at line 411 of file dao_liquid_crypto.h.

◆ rsvd_59

uint64_t rsvd_59

Reserved Bit 59

Definition at line 413 of file dao_liquid_crypto.h.

◆ enc_cipher

uint64_t enc_cipher

Encr_cipher_type: Encryption cipher type

See also
enum dao_lc_fc_enc_cipher

Definition at line 418 of file dao_liquid_crypto.h.

◆ auth_input_type

uint64_t auth_input_type

Auth_input_type: Authentication key input type

See also
enum dao_lc_fc_auth_input_type

Must be set to DAO_LC_FC_AUTH_INPUT_OPAD_IPAD

Definition at line 425 of file dao_liquid_crypto.h.

◆ auth_key_src

uint64_t auth_key_src

Auth_key_source: Authentication key source

See also
enum dao_lc_fc_auth_key_src

Must be set to DAO_LC_FC_AUTH_KEY_SRC_CTX

Definition at line 432 of file dao_liquid_crypto.h.

◆ rsvd_50_51

uint64_t rsvd_50_51

Reserved Bit 50-51

Definition at line 434 of file dao_liquid_crypto.h.

◆ hash_type

uint64_t hash_type

MAC_Select: Authentication algorithm

See also
enum dao_lc_fc_hash_type

Definition at line 439 of file dao_liquid_crypto.h.

◆ mac_len

uint64_t mac_len

MAC_Len (MAC_Len ranges from 1 to MAC length of the respective MAC algorithm)

Definition at line 441 of file dao_liquid_crypto.h.

◆ rsvd_16_39

uint64_t rsvd_16_39

Reserved Bit 16-39

Definition at line 443 of file dao_liquid_crypto.h.

◆ hmac_key_sz

uint64_t hmac_key_sz

HMAC_Key_Size: Key size (valid for HMAC only; auth_input_type must be 1).

Definition at line 445 of file dao_liquid_crypto.h.

◆ encr_key

uint8_t encr_key[32]

Encr_Key or KEY1 for AES-XTS or ChaCha key.

Definition at line 447 of file dao_liquid_crypto.h.

◆ encr_iv

uint8_t encr_iv[16]

Encr_IV or Tweak for AES-XTS. Set to 0 when Encrypt_IV_Source == 1 and not AES_GCM.

Definition at line 449 of file dao_liquid_crypto.h.

◆ ipad

uint8_t ipad[64]

IPAD or KEY2 for AES-XTS.

Definition at line 451 of file dao_liquid_crypto.h.

◆ opad

uint8_t opad[64]

OPAD or Key (Authentication key; supported range is 1 to 64 bytes. Application should take care of padding with zeroes if the key is less than 64 bytes.)

Definition at line 456 of file dao_liquid_crypto.h.


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