mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 01:49:41 +00:00
Re-add static functions to eccrypto.cpp
I think another approach is better for CMake
This commit is contained in:
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;}
|
||||
};
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
static const EcRecommendedParameters<ECP> rec[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user