mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Remove DH_GEN_PUB macro requirement
This commit is contained in:
@@ -1348,7 +1348,6 @@ static int GeneratePublicDh(DhKey* key, byte* priv, word32 privSz,
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_DH_GEN_PUB)
|
||||
/**
|
||||
* Given a DhKey with set params and a priv key, generate the corresponding
|
||||
* public key. If fips, does pub key validation.
|
||||
@@ -1378,7 +1377,6 @@ WOLFSSL_API int wc_DhGeneratePublic(DhKey* key, byte* priv, word32 privSz,
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif /* WOLFSSL_DH_GEN_PUB */
|
||||
|
||||
static int wc_DhGenerateKeyPair_Sync(DhKey* key, WC_RNG* rng,
|
||||
byte* priv, word32* privSz, byte* pub, word32* pubSz)
|
||||
|
@@ -112,10 +112,8 @@ WOLFSSL_API const DhParams* wc_Dh_ffdhe8192_Get(void);
|
||||
WOLFSSL_API int wc_InitDhKey(DhKey* key);
|
||||
WOLFSSL_API int wc_InitDhKey_ex(DhKey* key, void* heap, int devId);
|
||||
WOLFSSL_API int wc_FreeDhKey(DhKey* key);
|
||||
#if defined(WOLFSSL_DH_GEN_PUB)
|
||||
WOLFSSL_API int wc_DhGeneratePublic(DhKey* key, byte* priv, word32 privSz,
|
||||
byte* pub, word32* pubSz);
|
||||
#endif /* WOLFSSL_DH_GEN_PUB */
|
||||
|
||||
WOLFSSL_API int wc_DhGenerateKeyPair(DhKey* key, WC_RNG* rng, byte* priv,
|
||||
word32* privSz, byte* pub, word32* pubSz);
|
||||
|
Reference in New Issue
Block a user