DH key gen should call DH check key.

This commit is contained in:
John Safranek
2021-03-04 14:10:48 -08:00
committed by Daniel Pouzzner
parent e3b2be5ea3
commit a2f802199d

View File

@@ -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;
}