def mul_inv_aes.s11001

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

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

2071def mul_inv_aes.s11001(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, False{}, False{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, False{}, False{}, True{}, b5, b6, b7})))) == 1 : U32}:
2072  match b5:
2073    case True{}:
2074      match b6:
2075        case True{}:
2076          match b7:
2077            case True{}:
2078              {==}
2079            case False{}:
2080              {==}
2081        case False{}:
2082          match b7:
2083            case True{}:
2084              {==}
2085            case False{}:
2086              {==}
2087    case False{}:
2088      match b6:
2089        case True{}:
2090          match b7:
2091            case True{}:
2092              {==}
2093            case False{}:
2094              {==}
2095        case False{}:
2096          match b7:
2097            case True{}:
2098              {==}
2099            case False{}:
2100              {==}

Uses (8)

Used by (1)