def cam.rotw

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

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

200# q rotated left by 32 bits, and by r bits (r = 0 to 31)
201def cam.rotw(q: M.CmBlock) -> M.CmBlock:
202  match q:
203    case M.CmBlock{a, b, c, d}:
204      M.CmBlock{b, c, d, a}

Uses (1)

Used by (1)