def aes_sbox_algebraic

qasim-bend-kit@0.1.0.2 · libs/AES256GCMCore.bend:40

import qasim-bend-kit@0.1.0.2/libs/AES256GCMCore.bend as AES256GCMCore
import Base

40def aes_sbox_algebraic(+x: U32) -> U32:
41    +inv = gf8_pow(x, 254)
42    U32.xor(U32.xor(U32.xor(U32.xor(inv, rotl8(inv, 1n)),
43        rotl8(inv, 2n)), rotl8(inv, 3n)),
44        U32.xor(rotl8(inv, 4n), 99))

Uses (4)

Used by (0)

No other definition uses this definition.