def rol3

bend-collections@1.0.0.0 · src/crypto/keccak/lane.bend:45

import bend-collections@1.0.0.0/src/crypto/keccak/lane.bend as Lane
import Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T

45def rol3(a: T.Lane) -> T.Lane:
46  match a:
47    case T.W{+lo,+hi}:
48      T.W{U32.or(U32.shln(lo,3n),U32.shrn(hi,29n)),U32.or(U32.shln(hi,3n),U32.shrn(lo,29n))}

Uses (4)

Used by (2)