def kbit
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519.bend as X25519import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
66# k_t = (k >> t) & 1
67def kbit(+k: Nat, t: Nat) -> Nat:
68 C.bit(C.high(t, k))
Uses (3)
Used by (11)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:kbit_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:kbit_val
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519:ladder
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:decode
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/scalar2:mac_okb
- …