-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
External access to these functions was removed in #304 when the old `internals` module and `expose-internals` feature were removed. There are some valid use cases for them, though (see #351), so let's bring back a subset of what was in `internals` using the same naming and documentation conventions that the aes crate uses for its hazardous functions. Much of the added or changed documentation is derived from that in the `aes` crate. Fixes #351.
- Loading branch information
Showing
6 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! ⚠️ Low-level "hazmat" RSA functions. | ||
//! | ||
//! # ☢️️ WARNING: HAZARDOUS API ☢️ | ||
//! | ||
//! This module holds functions that apply RSA's core encryption and decryption | ||
//! primitives to raw data without adding or removing appropriate padding. A | ||
//! well-reviewed padding scheme is crucial to the security of RSA, so there are | ||
//! very few valid uses cases for this API. It's intended to be used for | ||
//! implementing well-reviewed higher-level constructions. | ||
//! | ||
//! We do NOT recommend using it to implement any algorithm which has not | ||
//! received extensive peer review by cryptographers. | ||
pub use crate::algorithms::rsa::{rsa_decrypt, rsa_decrypt_and_check, rsa_encrypt}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,3 +246,6 @@ pub use crate::{ | |
pss::Pss, | ||
traits::keys::CrtValue, | ||
}; | ||
|
||
#[cfg(feature = "hazmat")] | ||
pub mod hazmat; |