def mul_inv_aes.s10010

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

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

2288def mul_inv_aes.s10010(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, False{}, False{}, True{}, False{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, False{}, False{}, True{}, False{}, b5, b6, b7})))) == 1 : U32}:
2289  match b5:
2290    case True{}:
2291      match b6:
2292        case True{}:
2293          match b7:
2294            case True{}:
2295              {==}
2296            case False{}:
2297              {==}
2298        case False{}:
2299          match b7:
2300            case True{}:
2301              {==}
2302            case False{}:
2303              {==}
2304    case False{}:
2305      match b6:
2306        case True{}:
2307          match b7:
2308            case True{}:
2309              {==}
2310            case False{}:
2311              {==}
2312        case False{}:
2313          match b7:
2314            case True{}:
2315              {==}
2316            case False{}:
2317              {==}

Uses (8)

Used by (1)