RE: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0

2020-12-17 Thread Sands, Daniel via openssl-users
From: Narayana, Sunil Kumar Sent: Thursday, December 17, 2020 8:17 AM To: Sands, Daniel ; openssl-users@openssl.org Subject: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0 Hi, For the equivalent replacement of DH_compute_key in 3.0, we tried to perform the steps

RE: DH_compute_key () - replacement in 3.0

2020-12-17 Thread Narayana, Sunil Kumar
gctx, sharedSecret, &skeylen) } Note - EVP_PKEY_derive -- call fails what is wrong in the steps can you please g From: Sands, Daniel Sent: 16 December 2020 05:00 To: Narayana, Sunil Kumar ; openssl-users@openssl.org Subject: RE: [EXTERNAL] RE: DH_compute_key (

RE: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0

2020-12-16 Thread Sands, Daniel via openssl-users
Hi Daniel, Thanks we will try it out. One more doubt regarding DH_generate_key, as per earlier suggestion we tried following changes to replicate the generate key, but we observe that the out put key is not matching with the one that is obtained by DH_generate_key() of older ver

RE: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0

2020-12-16 Thread Narayana, Sunil Kumar
a, Sunil Kumar ; openssl-users@openssl.org Subject: RE: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0 NOTICE: This email was received from an EXTERNAL sender We do have generated the key using EVP_PKEY_gen as suggested in e

RE: [EXTERNAL] RE: DH_compute_key () - replacement in 3.0

2020-12-15 Thread Sands, Daniel via openssl-users
We do have generated the key using EVP_PKEY_gen as suggested in earlier emails, but since this was a non-ephemeral and we wanted to store the key in "raw" octet bytes, so we did extracted the whole DH priv/pub key pair out from the key generated via EVP_PKEY_gen ( using as suggested… EVP_PKEY

RE: DH_compute_key () - replacement in 3.0

2020-12-15 Thread Narayana, Sunil Kumar
nt: 15 December 2020 05:16 To: Narayana, Sunil Kumar ; openssl-users@openssl.org Subject: RE: DH_compute_key () - replacement in 3.0 NOTICE: This email was received from an EXTERNAL sender to exactly replace this we are gene

RE: DH_compute_key () - replacement in 3.0

2020-12-14 Thread Sands, Daniel via openssl-users
to exactly replace this we are generating “pubparam_key/priparam_key” using bn_publicKey/dh->priv_key as below OSSL_PARAM_BLD *pubparamsbld = NULL, priparamsbld = NULL; OSSL_PARAM *pubparams = NULL, priparams = NULL; EVP_PKEY *pubparam_key = NULL, *priparam_key = NULL; EVP_PKEY_CTX *pubctx =