def rol15

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

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

70def rol15(a: T.Lane) -> T.Lane:
71  match a:
72    case T.W{+lo,+hi}:
73      T.W{U32.or(U32.shln(lo,15n),U32.shrn(hi,17n)),U32.or(U32.shln(hi,15n),U32.shrn(lo,17n))}

Uses (4)

Used by (2)