← Tutorials & Labs

Rust Security Development

Writing safe cryptographic and systems code in Rust.

A subcategory of Tutorials & Labs, collecting its introduction, articles and resource entry points.

§

Articles here

22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
22 Nov 2026 Tutorials & Labs

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

Read more →
§

More in this section