Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::crypto::detail::gcm::GHashTable Struct Reference

4-bit precomputed table for constant-time GHASH multiplication. More...

#include <aes_gcm.hpp>

Public Member Functions

void init (const Block128 &H)
 Precompute the 16-entry multiplication table from hash subkey H.
 

Public Attributes

Block128 entries [16]
 

Detailed Description

4-bit precomputed table for constant-time GHASH multiplication.

Stores M[i] = i * H in GF(2^128) for i in 0..15, where i is treated as a 4-bit GF(2) polynomial. Computed at GCM init time from the hash subkey H = AES_K(0^128).

Ref: NIST SP 800-38D ยง6.3, CWE-208 (constant-time requirement).

Definition at line 133 of file aes_gcm.hpp.

Member Function Documentation

◆ init()

void signet::forge::crypto::detail::gcm::GHashTable::init ( const Block128 H)
inline

Precompute the 16-entry multiplication table from hash subkey H.

Definition at line 137 of file aes_gcm.hpp.

Member Data Documentation

◆ entries

Block128 signet::forge::crypto::detail::gcm::GHashTable::entries[16]

Definition at line 134 of file aes_gcm.hpp.


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