def cam.key192

bend-osdev-legacy-ciphers@0.1.0.0 · camellia.bend:308

import bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend as Camellia
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

308# a 192-bit key's KR is its last 64 bits, then their complement
309def cam.key192(+xs: List<&2, U32>) -> LcCamelliaKey:
310  +r0 = cam.w(xs, 4n)
311  +r1 = cam.w(xs, 5n)
312  cam.key256.go(M.CmBlock{cam.w(xs, 0n), cam.w(xs, 1n), cam.w(xs, 2n), cam.w(xs, 3n)}, M.CmBlock{r0, r1, U32.not(r0), U32.not(r1)})

Uses (7)

Used by (1)