def rot24

bend-collections@1.0.0.0 · src/crypto/blake/blake2b/lane.bend:21

import bend-collections@1.0.0.0/src/crypto/blake/blake2b/lane.bend as Lane
import Base
import bend-collections@1.0.0.0/src/crypto/blake/blake2b/types.bend as T

21def rot24(a: T.Lane) -> T.Lane:
22  match a:
23    case T.W{+lo,+hi}:
24      T.W{U32.or(U32.shrn(lo,24n),U32.shln(hi,8n)),U32.or(U32.shrn(hi,24n),U32.shln(lo,8n))}

Uses (4)

Used by (2)