Skip to content
Tech News
← Back to articles

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

read original get RustCrypto Crypto Library → more articles
Why This Matters

Rscrypto is a comprehensive, pure-Rust cryptography library that offers industry-leading performance, security, and flexibility. Its modular design allows developers to include only the primitives they need, ensuring small binary sizes and greater deployment control, making it ideal for security-conscious and resource-constrained projects. By supporting a wide range of cryptographic standards and hardware acceleration, rscrypto advances the Rust ecosystem's capabilities in secure, high-performance cryptography.

Key Takeaways

rscrypto

Pure Rust cryptography: RSA, Ed25519, X25519, AEADs, hashes, KDFs, password hashing, CRCs, no_std , WASM, and hardware acceleration in one dependency.

rscrypto is a single primitive stack for projects that care about binary size, deployment control, and speed without a mandatory C, OpenSSL, or system lib story.

Use one leaf feature for one primitive, a group for a subset of primitives, or full for the whole shebang. The portable Rust backend is always present. SIMD and assembly are only accelerators.

Current benchmark scorecards: Linux CI is 1.61x fastest-external geomean with 3,545 / 5,832 wins and 5,210 / 5,832 wins-or-ties. Apple Silicon (MBP M1, macOS/aarch64 local full run) is 1.25x fastest-external geomean with 235 / 463 wins and 450 / 463 wins-or-ties.

Chart: 2026-05-27 Linux CI benchmark pass. Apple Silicon numbers from the 2026-06-01 MBP M1 local full run are listed below. Values above 1.00x mean rscrypto is faster than the fastest matched Rust baseline.

Why rscrypto?

RSA is now a first class citizen. Strict DER import/export, RSA-PSS, RSASSA-PKCS1-v1_5, OAEP, RSAES-PKCS1-v1_5, key generation, X.509/JWT/COSE/TLS profile mapping, blinded private operations, and reusable scratch APIs.

Strict DER import/export, RSA-PSS, RSASSA-PKCS1-v1_5, OAEP, RSAES-PKCS1-v1_5, key generation, X.509/JWT/COSE/TLS profile mapping, blinded private operations, and reusable scratch APIs. One coherent primitive stack. Avoid composing half a dozen crates with different APIs, feature models, and security conventions.

Avoid composing half a dozen crates with different APIs, feature models, and security conventions. Small builds stay small. Enable sha2 , blake3 , aes-gcm , chacha20poly1305 , ed25519 , x25519 , argon2 , or any other leaf without pulling in the world.

... continue reading