mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
DH: move declaration of wc_DhPublicKeyDecode() from dh.h to asn.h (it is defined in asn.c).
This commit is contained in:
@ -1819,6 +1819,10 @@ WOLFSSL_LOCAL int wc_CheckPrivateKeyCert(const byte* key, word32 keySz, DecodedC
|
|||||||
WOLFSSL_LOCAL int wc_CheckPrivateKey(const byte* privKey, word32 privKeySz,
|
WOLFSSL_LOCAL int wc_CheckPrivateKey(const byte* privKey, word32 privKeySz,
|
||||||
const byte* pubKey, word32 pubKeySz, enum Key_Sum ks);
|
const byte* pubKey, word32 pubKeySz, enum Key_Sum ks);
|
||||||
WOLFSSL_LOCAL int StoreDHparams(byte* out, word32* outLen, mp_int* p, mp_int* g);
|
WOLFSSL_LOCAL int StoreDHparams(byte* out, word32* outLen, mp_int* p, mp_int* g);
|
||||||
|
#ifdef WOLFSSL_DH_EXTRA
|
||||||
|
WOLFSSL_API int wc_DhPublicKeyDecode(const byte* input, word32* inOutIdx,
|
||||||
|
DhKey* key, word32 inSz);
|
||||||
|
#endif
|
||||||
WOLFSSL_LOCAL int FlattenAltNames( byte*, word32, const DNS_entry*);
|
WOLFSSL_LOCAL int FlattenAltNames( byte*, word32, const DNS_entry*);
|
||||||
|
|
||||||
WOLFSSL_LOCAL int wc_EncodeName(EncodedName* name, const char* nameStr,
|
WOLFSSL_LOCAL int wc_EncodeName(EncodedName* name, const char* nameStr,
|
||||||
|
@ -138,11 +138,9 @@ WOLFSSL_API int wc_DhCopyNamedKey(int name,
|
|||||||
byte* p, word32* pSz, byte* g, word32* gSz, byte* q, word32* qSz);
|
byte* p, word32* pSz, byte* g, word32* gSz, byte* q, word32* qSz);
|
||||||
|
|
||||||
#ifdef WOLFSSL_DH_EXTRA
|
#ifdef WOLFSSL_DH_EXTRA
|
||||||
WOLFSSL_API int wc_DhPublicKeyDecode(const byte* input, word32* inOutIdx,
|
|
||||||
DhKey* key, word32 inSz);
|
|
||||||
WOLFSSL_API int wc_DhImportKeyPair(DhKey* key, const byte* priv, word32 privSz,
|
WOLFSSL_API int wc_DhImportKeyPair(DhKey* key, const byte* priv, word32 privSz,
|
||||||
const byte* pub, word32 pubSz);
|
const byte* pub, word32 pubSz);
|
||||||
WOLFSSL_API int wc_DhExportKeyPair(DhKey* key, byte* priv, word32* pPrivSz,
|
WOLFSSL_API int wc_DhExportKeyPair(DhKey* key, byte* priv, word32* pPrivSz,
|
||||||
byte* pub, word32* pPubSz);
|
byte* pub, word32* pPubSz);
|
||||||
WOLFSSL_LOCAL int wc_DhKeyCopy(DhKey* src, DhKey* dst);
|
WOLFSSL_LOCAL int wc_DhKeyCopy(DhKey* src, DhKey* dst);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user