def Gf8.inv
import bend-osdev-gf@0.1.1.0/gf.bend as Gfimport 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)
import bend-osdev-gf@0.1.1.0/gf.bend as Gfimport 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)