def aria.ek4

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

import bend-osdev-aria@0.1.0.0/aria.bend as Aria
import Base
import bend-osdev-mode-core@0.1.0.0/mode_core.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)