def rol56

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

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

140def rol56(a: T.Lane) -> T.Lane:
141  match a:
142    case T.W{+lo,+hi}:
143      T.W{U32.or(U32.shln(hi,24n),U32.shrn(lo,8n)),U32.or(U32.shln(lo,24n),U32.shrn(hi,8n))}

Uses (4)

Used by (2)