def mul_inv_aes.s11111

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

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

1885def mul_inv_aes.s11111(+b5: Bool, +b6: Bool, +b7: Bool) -> {G.Gf8.mul(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, True{}, True{}, True{}, b5, b6, b7})), G.Gf8.inv(G.Gf8.aes(), fixz(G.Gf8Bits.to(G.Gf8Bits{True{}, True{}, True{}, True{}, True{}, b5, b6, b7})))) == 1 : U32}:
1886  match b5:
1887    case True{}:
1888      match b6:
1889        case True{}:
1890          match b7:
1891            case True{}:
1892              {==}
1893            case False{}:
1894              {==}
1895        case False{}:
1896          match b7:
1897            case True{}:
1898              {==}
1899            case False{}:
1900              {==}
1901    case False{}:
1902      match b6:
1903        case True{}:
1904          match b7:
1905            case True{}:
1906              {==}
1907            case False{}:
1908              {==}
1909        case False{}:
1910          match b7:
1911            case True{}:
1912              {==}
1913            case False{}:
1914              {==}

Uses (8)

Used by (1)