github.com/RustCrypto/RSA

RSA implementation in pure Rust

Open this visualization on its own page →

Contributors

19

Lines of Code

294

From

2018-07-17

To

2020-12-02

About RustCrypto/RSA

RustCrypto RSA is a pure Rust implementation of the RSA public-key cryptosystem. It provides core functionality for prime generation, key generation and import/export, along with support for multiple encryption and signing standards including PKCS1v1.5, OAEP (Optimal Asymmetric Encryption Padding), and PSS (Probabilistic Signature Scheme).

The project is currently in Phase 1 of its development roadmap, focusing on getting core functionality working. It has completed implementations for basic RSA operations but still needs optimization work and security hardening before reaching version 1.0. The crate received a security audit from Include Security, though notably there is a known vulnerability to the Marvin Attack that could enable private key recovery in network scenarios, which the maintainers are actively working to address.

The library targets developers building cryptographic applications in Rust and requires Rust 1.85 or higher. It is distributed under dual Apache 2.0 and MIT licenses, making it suitable for both open-source and commercial projects. The project is part of the larger RustCrypto organization and maintains an active community for support and discussion.

Share this video