QSC Post Quantum Cryptographic Library 1.0.0.6c (A6)
A post quantum secure library written in Ansi C
 
Loading...
Searching...
No Matches
qsc_aes_hba256_state Struct Reference

State structure for AES-based Hash Based Authentication (HBA-256). More...

#include <aes.h>

Data Fields

qsc_keccak_state kstate
 
qsc_aes_state cstate
 
uint64_t counter
 
uint8_t mkey [QSC_HBA256_MAC_SIZE]
 
uint8_t cust [QSC_HBA_MAXINFO_SIZE]
 
size_t custlen
 
bool encrypt
 

Detailed Description

State structure for AES-based Hash Based Authentication (HBA-256).

Combines an AES-256 cipher ctx with a MAC ctx (using either KMAC or HMAC) to implement an AEAD scheme.

See also
qsc_aes_hba256_initialize, qsc_aes_hba256_transform, qsc_aes_hba256_dispose

Field Documentation

◆ counter

uint64_t counter

[uint64_t] Counter for the number of processed bytes

◆ cstate

qsc_aes_state cstate

[struct] Underlying AES cipher ctx

◆ cust

uint8_t cust[QSC_HBA_MAXINFO_SIZE]

[uint8_t[QSC_HBA_MAXINFO_SIZE]] Customization key (user provided tweak)

◆ custlen

size_t custlen

[size_t] Length of the customization key

◆ encrypt

bool encrypt

[bool] Transformation mode: true for encryption, false for decryption

◆ kstate

[struct] MAC ctx for KMAC authentication

◆ mkey

uint8_t mkey[QSC_HBA256_MAC_SIZE]

[uint8_t[QSC_HBA256_MAC_SIZE]] MAC generator key


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