def rol20

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

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

80def rol20(a: T.Lane) -> T.Lane:
81  match a:
82    case T.W{+lo,+hi}:
83      T.W{U32.or(U32.shln(lo,20n),U32.shrn(hi,12n)),U32.or(U32.shln(hi,20n),U32.shrn(lo,12n))}

Uses (4)

Used by (2)