def lc.wrotl
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as LegacyCiphersimport Base
import bend-osdev-word64@0.1.0.0/word64.bend as W
78# the (m + n)-bit word w rotated left by n
79def lc.wrotl(+m: Nat, +n: Nat, +w: Word(Nat.add(m, n))) -> Word(Nat.add(n, m)):
80 W.W64.bits.cat(n, m, W.W64.bits.hi(m, n, w), W.W64.bits.lo(m, n, w))
Uses (6)
Used by (12)
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:lc.rotl1.bits
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:lc.rotl31.bits
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:lc.rotl10.bits
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:lc.rotl22.bits
- bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers:lc.rotl25.bits
- …