Rename RSA_PKCS1_2048_8192_SHA1 => RSA_PKCS1_2048_8192_SHA1_FOR_LEGACY_USE_ONLY.

This commit is contained in:
Brian Smith 2019-07-10 10:26:04 -10:00
parent 9c42fa187d
commit 6c3805840e
4 changed files with 7 additions and 6 deletions

View File

@ -116,7 +116,7 @@ macro_rules! rsa_params {
}
rsa_params!(
RSA_PKCS1_2048_8192_SHA1,
RSA_PKCS1_2048_8192_SHA1_FOR_LEGACY_USE_ONLY,
2048,
&super::padding::RSA_PKCS1_SHA1_FOR_LEGACY_USE_ONLY,
"Verification of signatures using RSA keys of 2048-8192 bits,

View File

@ -285,9 +285,10 @@ pub use crate::rsa::{
signing::RsaSubjectPublicKey,
verification::{
RsaPublicKeyComponents, RSA_PKCS1_2048_8192_SHA1, RSA_PKCS1_2048_8192_SHA256,
RSA_PKCS1_2048_8192_SHA384, RSA_PKCS1_2048_8192_SHA512, RSA_PKCS1_3072_8192_SHA384,
RSA_PSS_2048_8192_SHA256, RSA_PSS_2048_8192_SHA384, RSA_PSS_2048_8192_SHA512,
RsaPublicKeyComponents, RSA_PKCS1_2048_8192_SHA1_FOR_LEGACY_USE_ONLY,
RSA_PKCS1_2048_8192_SHA256, RSA_PKCS1_2048_8192_SHA384, RSA_PKCS1_2048_8192_SHA512,
RSA_PKCS1_3072_8192_SHA384, RSA_PSS_2048_8192_SHA256, RSA_PSS_2048_8192_SHA384,
RSA_PSS_2048_8192_SHA512,
},
RsaEncoding,

View File

@ -31,8 +31,8 @@
warnings
)]
use ring::{digest, error, pbkdf2, test, test_file};
use core::num::NonZeroU32;
use ring::{digest, error, pbkdf2, test, test_file};
#[test]
pub fn pbkdf2_tests() {

View File

@ -151,7 +151,7 @@ fn test_signature_rsa_pkcs1_verify() {
let digest_name = test_case.consume_string("Digest");
let alg = match digest_name.as_ref() {
"SHA1" => &signature::RSA_PKCS1_2048_8192_SHA1,
"SHA1" => &signature::RSA_PKCS1_2048_8192_SHA1_FOR_LEGACY_USE_ONLY,
"SHA256" => &signature::RSA_PKCS1_2048_8192_SHA256,
"SHA384" => &signature::RSA_PKCS1_2048_8192_SHA384,
"SHA512" => &signature::RSA_PKCS1_2048_8192_SHA512,