def mul_inv_aes.s10000

bend-osdev-gf@0.1.1.0 · PROOF.bend:2350

import bend-osdev-gf@0.1.1.0/PROOF.bend as PROOF
import Base
import bend-osdev-gf@0.1.1.0/gf.bend as G

2350def mul_inv_aes.s10000(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, False{}, False{}, False{}, False{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, False{}, False{}, False{}, False{}, b5, b6, b7})))) == 1 : U32}:
2351  match b5:
2352    case True{}:
2353      match b6:
2354        case True{}:
2355          match b7:
2356            case True{}:
2357              {==}
2358            case False{}:
2359              {==}
2360        case False{}:
2361          match b7:
2362            case True{}:
2363              {==}
2364            case False{}:
2365              {==}
2366    case False{}:
2367      match b6:
2368        case True{}:
2369          match b7:
2370            case True{}:
2371              {==}
2372            case False{}:
2373              {==}
2374        case False{}:
2375          match b7:
2376            case True{}:
2377              {==}
2378            case False{}:
2379              {==}

Uses (8)

Used by (1)