def mul_inv_aes.s00001

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

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

2815def mul_inv_aes.s00001(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, False{}, False{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, False{}, False{}, True{}, b5, b6, b7})))) == 1 : U32}:
2816  match b5:
2817    case True{}:
2818      match b6:
2819        case True{}:
2820          match b7:
2821            case True{}:
2822              {==}
2823            case False{}:
2824              {==}
2825        case False{}:
2826          match b7:
2827            case True{}:
2828              {==}
2829            case False{}:
2830              {==}
2831    case False{}:
2832      match b6:
2833        case True{}:
2834          match b7:
2835            case True{}:
2836              {==}
2837            case False{}:
2838              {==}
2839        case False{}:
2840          match b7:
2841            case True{}:
2842              {==}
2843            case False{}:
2844              {==}

Uses (8)

Used by (1)