diff options
author | lloyd <[email protected]> | 2010-03-04 04:05:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 04:05:16 +0000 |
commit | 280ed6b255770be9608acbf3afa3e14f5824778a (patch) | |
tree | b5d0fce7f01ca6990299a59dd8cadf16b3b382b1 /src/pubkey/rsa | |
parent | ea2b48cca1ef37815742577bfd692397bdcf8d13 (diff) |
Remove more load hooks
Diffstat (limited to 'src/pubkey/rsa')
-rw-r--r-- | src/pubkey/rsa/rsa.cpp | 2 | ||||
-rw-r--r-- | src/pubkey/rsa/rsa.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/pubkey/rsa/rsa.cpp b/src/pubkey/rsa/rsa.cpp index 83e6e1b17..33999f1cd 100644 --- a/src/pubkey/rsa/rsa.cpp +++ b/src/pubkey/rsa/rsa.cpp @@ -20,7 +20,7 @@ RSA_PublicKey::RSA_PublicKey(const BigInt& mod, const BigInt& exp) { n = mod; e = exp; - X509_load_hook(); + core = IF_Core(e, n); } /* diff --git a/src/pubkey/rsa/rsa.h b/src/pubkey/rsa/rsa.h index 33a049efe..c1210d22a 100644 --- a/src/pubkey/rsa/rsa.h +++ b/src/pubkey/rsa/rsa.h @@ -29,7 +29,10 @@ class BOTAN_DLL RSA_PublicKey : public PK_Encrypting_Key, RSA_PublicKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits) : - IF_Scheme_PublicKey(alg_id, key_bits) { X509_load_hook(); } + IF_Scheme_PublicKey(alg_id, key_bits) + { + core = IF_Core(e, n); + } /** * Create a RSA_PublicKey |