Staticsยง
- TABLE ๐A lookup table for computing the inverse byte for the inverse affine transformation. See https://www.corsix.org/content/galois-field-instructions-2021-cpus for the definition of
gf_inv
which was used for the creation of this table.
Traitsยง
- Eval
Context ๐Ext
Functionsยง
- affine_
transform ๐Calculates the affine transformationright * left + imm8
inside the finite field GF(2^8).right
is an 8x8 bit matrix,left
andimm8
are bit vectors. Ifinverse
is set, then the inverse transformation with respect to the reduction polynomial x^8 + x^4 + x^3 + x + 1 is performed instead. - gf2p8_
mul ๐Multiplies packed 8-bit integers inleft
andright
in the finite field GF(2^8) and store the results indst
. The field GF(2^8) is represented in polynomial representation with the reduction polynomial x^8 + x^4 + x^3 + x + 1. See https://www.corsix.org/content/galois-field-instructions-2021-cpus for details.