def aria.ek4

bend-osdev-legacy-ciphers@0.1.0.0 · aria.bend:4541

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

4541# the four rotated round keys of one rotation: W0 xor (W1 >>> r), ...
4542def aria.ek4(+r: Nat, +w0: M.CmBlock, +w1: M.CmBlock, +w2: M.CmBlock, +w3: M.CmBlock) -> List<&2, M.CmBlock>:
4543  [M.CmBlock.xor(w0, aria.rotr(r, w1)), M.CmBlock.xor(w1, aria.rotr(r, w2)), M.CmBlock.xor(w2, aria.rotr(r, w3)), M.CmBlock.xor(aria.rotr(r, w0), w3)]

Uses (5)

Used by (1)