def mul_inv_aes.s01111

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

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

2381def mul_inv_aes.s01111(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, True{}, True{}, True{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, True{}, True{}, True{}, True{}, b5, b6, b7})))) == 1 : U32}:
2382  match b5:
2383    case True{}:
2384      match b6:
2385        case True{}:
2386          match b7:
2387            case True{}:
2388              {==}
2389            case False{}:
2390              {==}
2391        case False{}:
2392          match b7:
2393            case True{}:
2394              {==}
2395            case False{}:
2396              {==}
2397    case False{}:
2398      match b6:
2399        case True{}:
2400          match b7:
2401            case True{}:
2402              {==}
2403            case False{}:
2404              {==}
2405        case False{}:
2406          match b7:
2407            case True{}:
2408              {==}
2409            case False{}:
2410              {==}

Uses (8)

Used by (1)