def mul_inv_aes.s00100

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

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

2722def mul_inv_aes.s00100(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, False{}, False{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, True{}, False{}, False{}, b5, b6, b7})))) == 1 : U32}:
2723  match b5:
2724    case True{}:
2725      match b6:
2726        case True{}:
2727          match b7:
2728            case True{}:
2729              {==}
2730            case False{}:
2731              {==}
2732        case False{}:
2733          match b7:
2734            case True{}:
2735              {==}
2736            case False{}:
2737              {==}
2738    case False{}:
2739      match b6:
2740        case True{}:
2741          match b7:
2742            case True{}:
2743              {==}
2744            case False{}:
2745              {==}
2746        case False{}:
2747          match b7:
2748            case True{}:
2749              {==}
2750            case False{}:
2751              {==}

Uses (8)

Used by (1)