summaryrefslogtreecommitdiff
path: root/eccrypto.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-28 22:49:51 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-28 22:49:51 +0000
commit15462d9cf97d8653658ab1e401f2d33624ea9813 (patch)
tree265c21a4dbfee1c2ca8a1668f586c79ee1f9d26b /eccrypto.h
parent1184d133cf349a22dc086bda0db5c8fd7eca5a45 (diff)
downloadcryptopp-15462d9cf97d8653658ab1e401f2d33624ea9813.tar.gz
don't default to SHA-1 for ECDSA
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@491 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'eccrypto.h')
-rw-r--r--eccrypto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/eccrypto.h b/eccrypto.h
index 8d95780..b359e03 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