Re-add static functions to eccrypto.cpp
I think another approach is better for CMakepull/737/head
parent
9dfc010425
commit
776a2195bd
|
|
@ -136,7 +136,7 @@ struct OIDLessThan
|
||||||
inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& b) {return a.oid < b.oid;}
|
inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& b) {return a.oid < b.oid;}
|
||||||
};
|
};
|
||||||
|
|
||||||
void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
|
static void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const EcRecommendedParameters<EC2N> *&end)
|
||||||
{
|
{
|
||||||
// this array must be sorted by OID
|
// this array must be sorted by OID
|
||||||
static const EcRecommendedParameters<EC2N> rec[] = {
|
static const EcRecommendedParameters<EC2N> rec[] = {
|
||||||
|
|
@ -272,7 +272,7 @@ void GetRecommendedParameters(const EcRecommendedParameters<EC2N> *&begin, const
|
||||||
}
|
}
|
||||||
|
|
||||||
// See https://www.cryptopp.com/wiki/SM2 for details on sm2p256v1 and sm2encrypt_recommendedParameters
|
// See https://www.cryptopp.com/wiki/SM2 for details on sm2p256v1 and sm2encrypt_recommendedParameters
|
||||||
void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
|
static void GetRecommendedParameters(const EcRecommendedParameters<ECP> *&begin, const EcRecommendedParameters<ECP> *&end)
|
||||||
{
|
{
|
||||||
// this array must be sorted by OID
|
// this array must be sorted by OID
|
||||||
static const EcRecommendedParameters<ECP> rec[] = {
|
static const EcRecommendedParameters<ECP> rec[] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue