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 |
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.
uint64_t counter |
[uint64_t] Counter for the number of processed bytes
qsc_aes_state cstate |
[struct] Underlying AES cipher ctx
uint8_t cust[QSC_HBA_MAXINFO_SIZE] |
[uint8_t[QSC_HBA_MAXINFO_SIZE]] Customization key (user provided tweak)
size_t custlen |
[size_t] Length of the customization key
bool encrypt |
[bool] Transformation mode: true for encryption, false for decryption
qsc_keccak_state kstate |
[struct] MAC ctx for KMAC authentication
uint8_t mkey[QSC_HBA256_MAC_SIZE] |
[uint8_t[QSC_HBA256_MAC_SIZE]] MAC generator key