27 static QByteArray
point2oct(
const QSharedPointer<const EC_GROUP>& pCurve,
const EC_POINT* pPoint,
bool pCompressed =
false);
29 static QSharedPointer<EC_POINT>
oct2point(
const QSharedPointer<const EC_GROUP>& pCurve,
const QByteArray& pCompressedData);
31 static QSharedPointer<EC_GROUP>
create(EC_GROUP* pEcGroup);
33#if OPENSSL_VERSION_NUMBER < 0x30000000L
34 static QSharedPointer<EC_KEY>
create(EC_KEY* pEcKey);
37 static QSharedPointer<EC_POINT>
create(EC_POINT* pEcPoint);
39 static QSharedPointer<BIGNUM>
create(BIGNUM* pBigNum);
41 static QSharedPointer<EVP_PKEY>
create(EVP_PKEY* pEcGroup);
43 static QSharedPointer<EVP_PKEY_CTX>
create(EVP_PKEY_CTX* pEcGroup);
45#if OPENSSL_VERSION_NUMBER >= 0x30000000L
46 static QByteArray getEncodedPublicKey(
const QSharedPointer<EVP_PKEY>& pKey);
47 static QSharedPointer<BIGNUM> getPrivateKey(
const QSharedPointer<const EVP_PKEY>& pKey);
48 static QSharedPointer<OSSL_PARAM>
create(
const std::function<
bool(OSSL_PARAM_BLD* pBuilder)>& pFunc);
49 static QSharedPointer<EVP_PKEY>
generateKey(
const QSharedPointer<const EC_GROUP>& pCurve);
51 static QSharedPointer<EC_KEY>
generateKey(
const QSharedPointer<const EC_GROUP>& pCurve);
54 static QSharedPointer<EC_GROUP>
createCurve(
int pNid);