mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
don't default to SHA-1 for ECDSA
This commit is contained in:
parent
1435784dee
commit
7f21596d10
@ -197,7 +197,7 @@ struct DL_Keys_EC
|
|||||||
typedef DL_PrivateKey_EC<EC> PrivateKey;
|
typedef DL_PrivateKey_EC<EC> PrivateKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class EC, class H = SHA>
|
template <class EC, class H>
|
||||||
struct ECDSA;
|
struct ECDSA;
|
||||||
|
|
||||||
//! ECDSA keys
|
//! ECDSA keys
|
||||||
@ -205,7 +205,7 @@ template <class EC>
|
|||||||
struct DL_Keys_ECDSA
|
struct DL_Keys_ECDSA
|
||||||
{
|
{
|
||||||
typedef DL_PublicKey_EC<EC> PublicKey;
|
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
|
//! 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_PrivateKey_EC<EC2N>;
|
||||||
CRYPTOPP_DLL_TEMPLATE_CLASS DL_Algorithm_GDSA<ECP::Point>;
|
CRYPTOPP_DLL_TEMPLATE_CLASS DL_Algorithm_GDSA<ECP::Point>;
|
||||||
CRYPTOPP_DLL_TEMPLATE_CLASS DL_Algorithm_GDSA<EC2N::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<ECP>, ECDSA<ECP, SHA256> >;
|
||||||
CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC2N>, ECDSA<EC2N> >;
|
CRYPTOPP_DLL_TEMPLATE_CLASS DL_PrivateKey_WithSignaturePairwiseConsistencyTest<DL_PrivateKey_EC<EC2N>, ECDSA<EC2N, SHA256> >;
|
||||||
|
|
||||||
NAMESPACE_END
|
NAMESPACE_END
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user