Skip to main content

rsa/
hazmat.rs

1//! ⚠️ Low-level "hazmat" RSA functions.
2//!
3//! # ☢️️ WARNING: HAZARDOUS API ☢️
4//!
5//! This module holds functions that apply RSA's core encryption and decryption
6//! primitives to raw data without adding or removing appropriate padding. A
7//! well-reviewed padding scheme is crucial to the security of RSA, so there are
8//! very few valid uses cases for this API. It's intended to be used for
9//! implementing well-reviewed higher-level constructions.
10//!
11//! We do NOT recommend using it to implement any algorithm which has not
12//! received extensive peer review by cryptographers.
13
14pub use crate::algorithms::rsa::{rsa_decrypt, rsa_decrypt_and_check, rsa_encrypt};