diff options
author | Jack Lloyd <[email protected]> | 2016-11-02 16:24:47 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-03 11:57:11 -0400 |
commit | 6ac2b1fb8ac0105e5e3d949536c02c4c1ab45f03 (patch) | |
tree | fb2a8a9834e3be898053c253fa39c0a8beba97f8 /src/lib/prov | |
parent | dcc1ee6d752bfff74bfc67c56e66226dc67f705a (diff) |
Update PKCS11 code, no RNG required
Diffstat (limited to 'src/lib/prov')
-rw-r--r-- | src/lib/prov/pkcs11/p11_rsa.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/prov/pkcs11/p11_rsa.cpp b/src/lib/prov/pkcs11/p11_rsa.cpp index 9c0f75157..014419233 100644 --- a/src/lib/prov/pkcs11/p11_rsa.cpp +++ b/src/lib/prov/pkcs11/p11_rsa.cpp @@ -16,12 +16,6 @@ #include <botan/rng.h> #include <botan/blinding.h> -#if defined(BOTAN_HAS_SYSTEM_RNG) - #include <botan/system_rng.h> -#else - #include <botan/auto_rng.h> -#endif - namespace Botan { namespace PKCS11 { @@ -101,14 +95,7 @@ RSA_PrivateKey PKCS11_RSA_PrivateKey::export_key() const auto d = get_attribute_value(AttributeType::PrivateExponent); auto n = get_attribute_value(AttributeType::Modulus); -#if defined(BOTAN_HAS_SYSTEM_RNG) - System_RNG rng; -#else - AutoSeeded_RNG rng; -#endif - - return RSA_PrivateKey(rng - , BigInt::decode(p) + return RSA_PrivateKey( BigInt::decode(p) , BigInt::decode(q) , BigInt::decode(e) , BigInt::decode(d) |