def rol43

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

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

120def rol43(a: T.Lane) -> T.Lane:
121  match a:
122    case T.W{+lo,+hi}:
123      T.W{U32.or(U32.shln(hi,11n),U32.shrn(lo,21n)),U32.or(U32.shln(lo,11n),U32.shrn(hi,21n))}

Uses (4)

Used by (2)