mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +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 */
|
#endif /* WOLFSSL_KCAPI_DH */
|
||||||
|
|
||||||
|
if (ret == 0) {
|
||||||
|
ret = wc_DhCheckKeyPair(key, pub, *pubSz, priv, *privSz);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user