def mul_inv_aes.s11100

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

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

1978def mul_inv_aes.s11100(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, True{}, False{}, False{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, True{}, False{}, False{}, b5, b6, b7})))) == 1 : U32}:
1979  match b5:
1980    case True{}:
1981      match b6:
1982        case True{}:
1983          match b7:
1984            case True{}:
1985              {==}
1986            case False{}:
1987              {==}
1988        case False{}:
1989          match b7:
1990            case True{}:
1991              {==}
1992            case False{}:
1993              {==}
1994    case False{}:
1995      match b6:
1996        case True{}:
1997          match b7:
1998            case True{}:
1999              {==}
2000            case False{}:
2001              {==}
2002        case False{}:
2003          match b7:
2004            case True{}:
2005              {==}
2006            case False{}:
2007              {==}

Uses (8)

Used by (1)