def rotr
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2b.bend as Blake2bimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2b/types.bend as T
42# Right rotation of a 64-bit word by n (0 <= n < 64).
43def rotr(a: T.Lane, +n: Nat) -> T.Lane:
44 match a n:
45 case T.W{lo,hi} 0n: T.W{lo,hi}
46 case T.W{lo,hi} 32n: T.W{hi,lo}
47 case T.W{lo,hi} n: rotr_split(lo,hi,n,Nat.is_lt(n,32n))
Uses (4)
Used by (14)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/blamka:GB
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/gb:m2
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/gb:m3
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/gb:m4
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/gb:m1
- …