The rscrypto crate provides a unified, high-performance Rust cryptography library that eliminates dependencies on external C or system libraries while supporting no_std and hardware-accelerated environments.
Key Points
- Offers a comprehensive primitive stack including RSA, Ed25519, X25519, AEADs, hashes, and password hashing in a single dependency.
- Features a portable Rust backend as the source of truth, with optional SIMD and assembly acceleration for x86, Arm, Apple Silicon, and RISC-V.
- Supports granular feature flags, allowing developers to include only necessary primitives to keep binary sizes minimal.
- Designed for security with constant-time operations, zeroized secret types, and strict arithmetic to prevent common side-channel vulnerabilities.
- Benchmarks show significant performance gains over existing Rust baselines, with a 1.61x geomean speedup in Linux CI environments.