def rol21

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

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

85def rol21(a: T.Lane) -> T.Lane:
86  match a:
87    case T.W{+lo,+hi}:
88      T.W{U32.or(U32.shln(lo,21n),U32.shrn(hi,11n)),U32.or(U32.shln(hi,21n),U32.shrn(lo,11n))}

Uses (4)

Used by (2)