Articles here
Calling liboqs Through FFI: The oqs Crate and unsafe Safety Boundaries
The oqs crate is the official Rust binding for liboqs with a friendly interface, but beneath the boundary lie FFI and unsafe. This article explains its usage shape and the disciplines to hold on four boundaries: length checks, secret wiping, panics never crossing FFI, and thread safety.
RustliboqsFFIunsafe
Hands-On: ML-KEM-768 Encapsulation with Rust's ml-kem Crate
Run a complete ML-KEM-768 key generation, encapsulation and decapsulation with RustCrypto's ml-kem crate, check the sizes against FIPS 203, and learn what to watch for in no_std environments.
RustML-KEMRustCryptoHands-On
The pqcrypto Crates: Another Road to PQClean Algorithms in Rust
The pqcrypto family of crates provides Rust bindings for the PQClean reference implementations, covering many KEM and signature algorithms. This article explains its per-parameter-set modules and typed-wrapper interface pattern, and the trade-offs against RustCrypto's pure-Rust route.
RustpqcryptoPQCleanBindings
ring and rustls: From Cryptographic Primitives to a TLS Implementation
ring is a low-level cryptographic primitives library and rustls is a pure-Rust TLS implementation; the two are often confused. This article clarifies each one's role, rustls's pluggable CryptoProvider architecture, and the realistic path to post-quantum key exchange today.
RustringrustlsTLS
Supply-Chain Hygiene for Cryptography Projects: cargo audit, deny and vet
Every dependency a cryptography project takes on is a potential attack surface. This article lays out a complete supply-chain hygiene pipeline: Cargo.lock and reproducible builds, cargo audit watching advisories, cargo deny enforcing policy, cargo vet recording reviews — and wires them into CI.
RustSupply Chaincargo auditCI
The RustCrypto Ecosystem: Modular Crates and How to Choose
RustCrypto is not a single library but a family of modular crates built on traits. This article maps its repositories, lays out the selection dimensions that matter — pure Rust versus FFI bindings, audit status, no_std support — and shows where post-quantum algorithms sit in the landscape.
RustRustCryptoSelectionEcosystem
Never Compare a MAC with ==: An Introduction to subtle and Constant-Time Programming
Ordinary equality comparison exits byte by byte and leaks the position of the first mismatching byte. This article explains timing side channels, subtle's Choice, ConstantTimeEq and ConditionallySelectable, and the capability limits of constant-time programming.
RustsubtleConstant-TimeSide Channels
Erase Keys When Done: Managing Secret Memory in Rust with zeroize
Why does assigning zero to a key variable so often fail to erase it? This article explains how compiler dead-store elimination defeats manual wiping, covers zeroize's Zeroize, ZeroizeOnDrop and Zeroizing trio, and shows how it pairs with secrecy.
RustzeroizeMemory SafetyKey Management