def mul_inv_aes.s00111

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

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

2629def mul_inv_aes.s00111(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, True{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, True{}, True{}, b5, b6, b7})))) == 1 : U32}:
2630  match b5:
2631    case True{}:
2632      match b6:
2633        case True{}:
2634          match b7:
2635            case True{}:
2636              {==}
2637            case False{}:
2638              {==}
2639        case False{}:
2640          match b7:
2641            case True{}:
2642              {==}
2643            case False{}:
2644              {==}
2645    case False{}:
2646      match b6:
2647        case True{}:
2648          match b7:
2649            case True{}:
2650              {==}
2651            case False{}:
2652              {==}
2653        case False{}:
2654          match b7:
2655            case True{}:
2656              {==}
2657            case False{}:
2658              {==}

Uses (8)

Used by (1)