diff options
author | lloyd <[email protected]> | 2010-03-04 04:46:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 04:46:04 +0000 |
commit | 2d3d341854cad6433cf88c2e65172a98dac2404d (patch) | |
tree | 46d250df86e79097f3e72d4027b14a6ecbfee53e | |
parent | 8005808c75219340c7170b15a26b8a806f159f7c (diff) |
Fix loading ElGamal keys
-rw-r--r-- | src/pubkey/pk_algs.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/pubkey/pk_algs.cpp b/src/pubkey/pk_algs.cpp index 132e9f35c..18e08f82e 100644 --- a/src/pubkey/pk_algs.cpp +++ b/src/pubkey/pk_algs.cpp @@ -8,8 +8,6 @@ #include <botan/internal/pk_algs.h> #include <botan/oids.h> -#include <stdio.h> - #if defined(BOTAN_HAS_RSA) #include <botan/rsa.h> #endif @@ -76,8 +74,8 @@ BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id, return new NR_PublicKey(alg_id, key_bits); #endif -#if defined(BOTAN_HAS_ELG) - if(alg_name == "ELG") +#if defined(BOTAN_HAS_ELGAMAL) + if(alg_name == "ElGamal") return new ElGamal_PublicKey(alg_id, key_bits); #endif @@ -127,8 +125,8 @@ BOTAN_DLL Private_Key* make_private_key(const AlgorithmIdentifier& alg_id, return new NR_PrivateKey(alg_id, key_bits, rng); #endif -#if defined(BOTAN_HAS_ELG) - if(alg_name == "ELG") +#if defined(BOTAN_HAS_ELGAMAL) + if(alg_name == "ElGamal") return new ElGamal_PrivateKey(alg_id, key_bits, rng); #endif |