mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
DH key gen should call DH check key.
This commit is contained in:
committed by
Daniel Pouzzner
parent
e3b2be5ea3
commit
a2f802199d
@@ -1864,6 +1864,10 @@ int wc_DhGenerateKeyPair(DhKey* key, WC_RNG* rng,
|
||||
}
|
||||
#endif /* WOLFSSL_KCAPI_DH */
|
||||
|
||||
if (ret == 0) {
|
||||
ret = wc_DhCheckKeyPair(key, pub, *pubSz, priv, *privSz);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user