HeadlinesBriefing favicon HeadlinesBriefing.com

rscrypto: Pure Rust Crypto Library Beats Competitors in Benchmarks

Hacker News •
×

A new Rust cryptography library called rscrypto aims to simplify secure development by providing a single dependency for common cryptographic primitives. The project supports BLAKE3, Ed25519/X25519, various hashes, MACs, KDFs, AEADs, and checksums without requiring OpenSSL or system libraries.

Benchmark results show rscrypto outperforming existing Rust implementations. On Linux CI, it achieved a 1.61x geometric mean speedup against the strongest matched baselines, with 3,545 wins out of 5,832 comparisons. Apple Silicon builds showed 1.25x speedup with 450 wins or ties out of 463 pairs. The library uses SIMD and assembly optimization where available.

Developers can enable individual primitives through leaf features or pull in entire families like hashes, signatures, or AEADs. The portable Rust backend serves as the reference implementation, with optimized kernels for x86, ARM, Apple Silicon, and other architectures. This approach eliminates the need to compose multiple crates with different APIs.

RSA joins Ed25519 as a first-class citizen with strict DER import/export, RSA-PSS, and OAEP support. The library targets no_std environments including embedded systems and WASM. Audit controls let developers force constant-time portable backends, while security hygiene includes opaque verification errors and zeroized secret types. It's a primitives crate, not a TLS stack or PKI toolkit.