def cam.rol

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

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

219# q <<< n
220def cam.rol(q: M.CmBlock, +n: Nat) -> M.CmBlock:
221  cam.rotb(cam.rotws(Nat.div(n, 32n), q), Nat.mod(n, 32n))

Uses (6)

Used by (2)