def rotate_small

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/keccak/permutation.bend:14

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/keccak/permutation.bend as Permutation
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/types.bend as T

14def rotate_small(+lo: U32, +hi: U32, +n: Nat) -> T.Lane:
15  T.W{U32.or(U32.shln(lo,n),U32.shrn(hi,Nat.sub(32n,n))),U32.or(U32.shln(hi,n),U32.shrn(lo,Nat.sub(32n,n)))}

Uses (7)

Used by (1)