summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-06-28 22:49:51 +0000
committerweidai <weidai11@users.noreply.github.com>2010-06-28 22:49:51 +0000
commit7f21596d107165902d648d8decde21f19947d5af (patch)
tree265c21a4dbfee1c2ca8a1668f586c79ee1f9d26b
parent1435784dee4a897e9d07f3847dd61a85ed7a38b1 (diff)
downloadcryptopp-git-7f21596d107165902d648d8decde21f19947d5af.tar.gz
don't default to SHA-1 for ECDSA
-rw-r--r--eccrypto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/eccrypto.h b/eccrypto.h
index 8d95780c..b359e033 100644
--- a/eccrypto.h
+++ b/eccrypto.h
@@ -197,7 +197,7 @@ struct DL_Keys_EC
typedef DL_PrivateKey_EC<EC> PrivateKey;
};
-template <class EC, class H = SHA>
+template <class EC, class H>
struct ECDSA;
//! ECDSA keys
@@ -205,7 +205,7 @@ template <class EC>
struct DL_Keys_ECDSA
{
typedef DL_PublicKey_EC<EC> PublicKey;
- typedef DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC>, ECDSA<EC> > PrivateKey;
+ typedef DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC>, ECDSA<EC, SHA256> > PrivateKey;
};
//! ECDSA algorithm
@@ -272,8 +272,8 @@ CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_EC<ECP>;
CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_EC<EC2N>;
CRYPTOPP_DLL_TEMPLATE_CLASS DL_Algorithm_GDSA<ECP::Point>;
CRYPTOPP_DLL_TEMPLATE_CLASS DL_Algorithm_GDSA<EC2N::Point>;
-CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<ECP>, ECDSA<ECP> >;
-CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC2N>, ECDSA<EC2N> >;
+CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<ECP>, ECDSA<ECP, SHA256> >;
+CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC2N>, ECDSA<EC2N, SHA256> >;
NAMESPACE_END