def rol2

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

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

40def rol2(a: T.Lane) -> T.Lane:
41  match a:
42    case T.W{+lo,+hi}:
43      T.W{U32.or(U32.shln(lo,2n),U32.shrn(hi,30n)),U32.or(U32.shln(hi,2n),U32.shrn(lo,30n))}

Uses (4)

Used by (2)