def rot63

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

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

31def rot63(a: T.Lane) -> T.Lane:
32  match a:
33    case T.W{+lo,+hi}:
34      T.W{U32.or(U32.shrn(hi,31n),U32.shln(lo,1n)),U32.or(U32.shrn(lo,31n),U32.shln(hi,1n))}

Uses (4)

Used by (2)