The GCM context structure.

Definition at line 73 of file gcm_alt.h.

#include <gcm_alt.h>

Data Fields

unsigned int keybits
uint64_t len
uint64_t add_len
CRYPTO_DData_TypeDef key
int mode
CRYPTO_TypeDef * device
CRYPTO_Data_TypeDef ghash_state
CRYPTO_Data_TypeDef gctr_state
CRYPTO_Data_TypeDef ghash_key
uint8_t se_ctx_enc [32]
uint8_t se_ctx_dec [32]
uint8_t tagbuf [16]
bool last_op

Field Documentation

uint64_t mbedtls_gcm_context::add_len

The total length of the additional data.

Definition at line 76 of file gcm_alt.h.

CRYPTO_TypeDef* mbedtls_gcm_context::device

CRYPTO device to use

Definition at line 82 of file gcm_alt.h.

CRYPTO_Data_TypeDef mbedtls_gcm_context::gctr_state

GCTR counter value

Definition at line 86 of file gcm_alt.h.

CRYPTO_Data_TypeDef mbedtls_gcm_context::ghash_key

GHASH key (is a constant value which is faster to restore than to reconstruct each time).

Definition at line 87 of file gcm_alt.h.

CRYPTO_Data_TypeDef mbedtls_gcm_context::ghash_state

GHASH state

Definition at line 85 of file gcm_alt.h.

CRYPTO_DData_TypeDef mbedtls_gcm_context::key

AES key, 128 or 256 bits

Definition at line 80 of file gcm_alt.h.

unsigned int mbedtls_gcm_context::keybits

size of key

Definition at line 74 of file gcm_alt.h.

bool mbedtls_gcm_context::last_op

Definition at line 102 of file gcm_alt.h.

uint64_t mbedtls_gcm_context::len

The total length of the encrypted data.

Definition at line 75 of file gcm_alt.h.

int mbedtls_gcm_context::mode

encryption or decryption

Definition at line 81 of file gcm_alt.h.

uint8_t mbedtls_gcm_context::se_ctx_dec[32]

Definition at line 99 of file gcm_alt.h.

uint8_t mbedtls_gcm_context::se_ctx_enc[32]

Definition at line 98 of file gcm_alt.h.

uint8_t mbedtls_gcm_context::tagbuf[16]

Definition at line 100 of file gcm_alt.h.

The documentation for this struct was generated from the following file:
  • gcm_alt.h