def mul_inv_aes.s00101

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

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

2691def mul_inv_aes.s00101(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, False{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, False{}, True{}, b5, b6, b7})))) == 1 : U32}:
2692  match b5:
2693    case True{}:
2694      match b6:
2695        case True{}:
2696          match b7:
2697            case True{}:
2698              {==}
2699            case False{}:
2700              {==}
2701        case False{}:
2702          match b7:
2703            case True{}:
2704              {==}
2705            case False{}:
2706              {==}
2707    case False{}:
2708      match b6:
2709        case True{}:
2710          match b7:
2711            case True{}:
2712              {==}
2713            case False{}:
2714              {==}
2715        case False{}:
2716          match b7:
2717            case True{}:
2718              {==}
2719            case False{}:
2720              {==}

Uses (8)

Used by (1)