def rol45

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

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

130def rol45(a: T.Lane) -> T.Lane:
131  match a:
132    case T.W{+lo,+hi}:
133      T.W{U32.or(U32.shln(hi,13n),U32.shrn(lo,19n)),U32.or(U32.shln(lo,13n),U32.shrn(hi,19n))}

Uses (4)

Used by (2)