QSC Post Quantum Cryptographic Library 1.3.0.0 (C1)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
qsc_aes_gcm256_state Struct Reference

State structure for AES-based Galois Counter Mode (GCM-256). More...

#include <aes.h>

Data Fields

qsc_aes_state cstate
uint8_t C [QSC_AES_BLOCK_SIZE]
uint8_t H [QSC_AES_BLOCK_SIZE]
uint8_t J0 [QSC_AES_BLOCK_SIZE]
uint8_t S [QSC_AES_BLOCK_SIZE]
uint64_t aadlen
uint64_t ctlen
bool encrypt

Detailed Description

State structure for AES-based Galois Counter Mode (GCM-256).

Combines an AES-256 cipher ctx with a Galois counter mode to implement an AEAD scheme.

See also
qsc_aes_gcm256_set_associated, qsc_aes_gcm256_decrypt, qsc_aes_gcm256_dispose, qsc_aes_gcm256_encrypt, qsc_aes_gcm256_initialize

Field Documentation

◆ aadlen

uint64_t aadlen

[uint64_t] AAD length in bits

◆ C

uint8_t C[QSC_AES_BLOCK_SIZE]

uint8_t[QSC_AES_BLOCK_SIZE] Current counter block

◆ cstate

qsc_aes_state cstate

[struct] Underlying AES cipher ctx

◆ ctlen

uint64_t ctlen

[uint64_t] Ciphertext length in bits

◆ encrypt

bool encrypt

[bool] Initialized for encryption

◆ H

uint8_t H[QSC_AES_BLOCK_SIZE]

uint8_t[QSC_AES_BLOCK_SIZE] Hash subkey H = AES(K,0U)

◆ J0

uint8_t J0[QSC_AES_BLOCK_SIZE]

uint8_t[QSC_AES_BLOCK_SIZE] Pre-counter block

◆ S

uint8_t S[QSC_AES_BLOCK_SIZE]

uint8_t[QSC_AES_BLOCK_SIZE] GHASH accumulator


The documentation for this struct was generated from the following file:
  • C:/Users/stepp/Documents/Visual Studio 2022/Projects/C/QSC/QSC/aes.h