def aria.key
bend-osdev-legacy-ciphers@0.1.0.0 · aria.bend:4586
import bend-osdev-legacy-ciphers@0.1.0.0/aria.bend as Aria
import Base
4586def aria.key(n16: Bool, n24: Bool, +xs: List<&2, U32>) -> LcAriaKey:
4587 match n16 n24:
4588 case True{} _:
4589 LcAriaKey{aria.ops(11n, aria.ws(aria.block(xs, 0n), aria.block(xs, 16n), 0n, 1n, 2n), True{})}
4590 case False{} True{}:
4591 LcAriaKey{aria.ops(13n, aria.ws(aria.block(xs, 0n), aria.block(xs, 16n), 1n, 2n, 0n), True{})}
4592 case False{} False{}:
4593 LcAriaKey{aria.ops(15n, aria.ws(aria.block(xs, 0n), aria.block(xs, 16n), 2n, 0n, 1n), True{})}