def Gf8.inv

bend-osdev-gf@0.1.1.0 · gf.bend:146

import bend-osdev-gf@0.1.1.0/gf.bend as Gf
import Base

146# the inverse a^254 (a^255 = 1 for a nonzero); the inverse of 0 is 0, as in
147# the AES S-box
148def Gf8.inv(+f: Gf8Field, +a: U32) -> U32:
149  Gf8.pow(f, a, 254n)

Uses (3)

Used by (77)