def mul_inv_aes.s00011

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

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

2753def mul_inv_aes.s00011(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, False{}, True{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{False{}, False{}, False{}, True{}, True{}, b5, b6, b7})))) == 1 : U32}:
2754  match b5:
2755    case True{}:
2756      match b6:
2757        case True{}:
2758          match b7:
2759            case True{}:
2760              {==}
2761            case False{}:
2762              {==}
2763        case False{}:
2764          match b7:
2765            case True{}:
2766              {==}
2767            case False{}:
2768              {==}
2769    case False{}:
2770      match b6:
2771        case True{}:
2772          match b7:
2773            case True{}:
2774              {==}
2775            case False{}:
2776              {==}
2777        case False{}:
2778          match b7:
2779            case True{}:
2780              {==}
2781            case False{}:
2782              {==}

Uses (8)

Used by (1)