def bxor
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519.bend as X25519import Base
70# swap ^= k_t, on bits
71def bxor(a: Nat, b: Nat) -> Nat:
72 match a:
73 case 0n:
74 b
75 case 1n+q:
76 Nat.sub(1n, b)
Uses (2)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519:rung
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:dec_fin
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:bxor_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:xor_bits
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/ladder:rung_rel
- …