diff options
author | lloyd <[email protected]> | 2009-12-24 22:22:41 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-24 22:22:41 +0000 |
commit | 888fc3d0f2f6f1dc5e9764e83e9b7fd64da916d8 (patch) | |
tree | 1d296ec03fc39ebbdfde4d4c49d9257b4935a21c /src/pubkey/pk_algs.cpp | |
parent | 90394a98550551d882fb4d9610b9b8bfa7271c76 (diff) | |
parent | d76d52bc7417bd703a868338cfe751b79dbb009a (diff) |
propagate from branch 'net.randombit.botan' (head a338abd543caa402c32acd952e865c8ec8e85a69)
to branch 'net.randombit.botan.gost_3410' (head d09208e0a933da2df52494876849c542e5a556ca)
Diffstat (limited to 'src/pubkey/pk_algs.cpp')
-rw-r--r-- | src/pubkey/pk_algs.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pubkey/pk_algs.cpp b/src/pubkey/pk_algs.cpp index c040e006b..dd62eb5ac 100644 --- a/src/pubkey/pk_algs.cpp +++ b/src/pubkey/pk_algs.cpp @@ -23,6 +23,10 @@ #include <botan/ecdsa.h> #endif +#if defined(BOTAN_HAS_GOST_34_10_2001) + #include <botan/gost_3410.h> +#endif + #if defined(BOTAN_HAS_NYBERG_RUEPPEL) #include <botan/nr.h> #endif @@ -70,6 +74,10 @@ Public_Key* get_public_key(const std::string& alg_name) if(alg_name == "ECDSA") return new ECDSA_PublicKey; #endif +#if defined(BOTAN_HAS_GOST_34_10_2001) + if(alg_name == "GOST-34.10") return new GOST_3410_PublicKey; +#endif + return 0; } @@ -106,6 +114,10 @@ Private_Key* get_private_key(const std::string& alg_name) if(alg_name == "ECDSA") return new ECDSA_PrivateKey; #endif +#if defined(BOTAN_HAS_GOST_34_10_2001) + if(alg_name == "GOST-34.10") return new GOST_3410_PrivateKey; +#endif + return 0; } |