RE: ECDH- NID_X9_62_prime256v1 - EVP_RAND_instantiate()
"'Damodhar Boddukuri' via openssl-users" <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <DBBPR04MB7961BBC3CE8C0CDB3E1586A7A9B22@DBBPR04MB7961.eurprd04.prod.outlook.com> |
Hi,
When I debug this issue further, ossl_prov_drbg_instantiate() is failing at:
if (entropylen < min_entropylen
|| entropylen > max_entropylen) {
ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_ENTROPY);
goto end;
}
What went wrong here?
Thanks & Regards,
Damodhar.
General
From: openssl-users <[email protected]> On Behalf Of Damodhar Boddukuri via openssl-users
Sent: Wednesday, July 31, 2024 6:06 PM
To: [email protected]
Subject: ECDH- NID_X9_62_prime256v1 - EVP_RAND_instantiate()
[External email: Use caution with links and attachments]
________________________________
Hi,
I am implementing ECDH- Group19 (NID_X9_62_prime256v1). I followed the below sequence.
1. ecdh_group = EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1); // NID_X9_62_prime256v1 or NID_secp256k1
2. ecdh_keys = EC_KEY_new();
3. ret = EC_KEY_set_group(ecdh_keys, ecdh_group);
4. ret = EC_KEY_generate_key(ecdh_keys);
At 4th step, function EVP_RAND_instantiate() returning '1' for the 1st time. Then 2nd time onward it's returning '0'. Because of this reason 4th step is failing.
Could you please let me know the possible reasons for it.
Thanks & Regards,
Damodhar.
General
General
--
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion on the web visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/DBBPR04MB7961BBC3CE8C0CDB3E1586A7A9B22%40DBBPR04MB7961.eurprd04.prod.outlook.com.