mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
SetDhInternal in DH_compute_key
This commit is contained in:
committed by
Jacob Barthelmeh
parent
a643ae1907
commit
b6abf4596e
@@ -22695,6 +22695,8 @@ int wolfSSL_DH_compute_key(unsigned char* key, WOLFSSL_BIGNUM* otherPub,
|
|||||||
else {
|
else {
|
||||||
privSz = wolfSSL_BN_bn2bin(dh->priv_key, priv);
|
privSz = wolfSSL_BN_bn2bin(dh->priv_key, priv);
|
||||||
pubSz = wolfSSL_BN_bn2bin(otherPub, pub);
|
pubSz = wolfSSL_BN_bn2bin(otherPub, pub);
|
||||||
|
if (dh->inSet == 0 && SetDhInternal(dh) != SSL_SUCCESS)
|
||||||
|
WOLFSSL_MSG("Bad DH set internal");
|
||||||
|
|
||||||
if (privSz <= 0 || pubSz <= 0)
|
if (privSz <= 0 || pubSz <= 0)
|
||||||
WOLFSSL_MSG("Bad BN2bin set");
|
WOLFSSL_MSG("Bad BN2bin set");
|
||||||
|
Reference in New Issue
Block a user