def mul_inv_aes.s11000

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

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

2102def mul_inv_aes.s11000(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, False{}, False{}, False{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, False{}, False{}, False{}, b5, b6, b7})))) == 1 : U32}:
2103  match b5:
2104    case True{}:
2105      match b6:
2106        case True{}:
2107          match b7:
2108            case True{}:
2109              {==}
2110            case False{}:
2111              {==}
2112        case False{}:
2113          match b7:
2114            case True{}:
2115              {==}
2116            case False{}:
2117              {==}
2118    case False{}:
2119      match b6:
2120        case True{}:
2121          match b7:
2122            case True{}:
2123              {==}
2124            case False{}:
2125              {==}
2126        case False{}:
2127          match b7:
2128            case True{}:
2129              {==}
2130            case False{}:
2131              {==}

Uses (8)

Used by (1)