def byte_of
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/random.bend as Randomimport Base
33# Go's byte(v >> k)
34def byte_of(+w: U32, +k: Nat) -> U32:
35 U32.and(U32.shrn(w, k), 255)
Uses (4)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/random:le_bytes
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:b0
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:b7
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:byte_of_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:le_below