From 2297dd000a7cf2831095ba59be2ed653ea3bd884 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 24 Apr 2017 05:05:14 -0400 Subject: Removed "typedef SHA1 SHA" (Issue 369) This should have happened when we removed most of MAINTAIN_BACKWARDS_COMPATIBILITY artifacts. Its not practical move SHA1 into Weak:: namespace or "typedef SHA256 SHA" because SHA1 is too intertwined at the moment. In the interim, maybe we can place SHA1 in both CryptoPP:: and Weak:: namespaces. This will allow us to transition into Weak::SHA1 over time, and signal to users SHA1 should be avoided. --- rsa.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'rsa.cpp') diff --git a/rsa.cpp b/rsa.cpp index c730ac39..6853d22d 100644 --- a/rsa.cpp +++ b/rsa.cpp @@ -15,13 +15,13 @@ NAMESPACE_BEGIN(CryptoPP) void RSA_TestInstantiations() { - RSASS::Verifier x1(1, 1); - RSASS::Signer x2(NullRNG(), 1); - RSASS::Verifier x3(x2); - RSASS::Verifier x4(x2.GetKey()); - RSASS::Verifier x5(x3); + RSASS::Verifier x1(1, 1); + RSASS::Signer x2(NullRNG(), 1); + RSASS::Verifier x3(x2); + RSASS::Verifier x4(x2.GetKey()); + RSASS::Verifier x5(x3); #ifndef __MWERKS__ - RSASS::Signer x6 = x2; + RSASS::Signer x6 = x2; x3 = x2; x6 = x2; #endif @@ -29,7 +29,7 @@ void RSA_TestInstantiations() #ifndef __GNUC__ RSAES::Encryptor x8(x3); #endif - RSAES >::Encryptor x9(x2); + RSAES >::Encryptor x9(x2); x4 = x2.GetKey(); } @@ -136,12 +136,12 @@ void InvertibleRSAFunction::GenerateRandom(RandomNumberGenerator &rng, const Nam if (FIPS_140_2_ComplianceEnabled()) { - RSASS::Signer signer(*this); - RSASS::Verifier verifier(signer); + RSASS::Signer signer(*this); + RSASS::Verifier verifier(signer); SignaturePairwiseConsistencyTest_FIPS_140_Only(signer, verifier); - RSAES >::Decryptor decryptor(*this); - RSAES >::Encryptor encryptor(decryptor); + RSAES >::Decryptor decryptor(*this); + RSAES >::Encryptor encryptor(decryptor); EncryptionPairwiseConsistencyTest_FIPS_140_Only(encryptor, decryptor); } } -- cgit v1.2.1