Re: [EXTERNAL] Re: bignum to evp key

2022-03-04 Thread Tomas Mraz
> > From: Tomas Mraz > Sent: Friday, March 4, 2022 3:24 PM > To: Srinivas, Saketh (c) > Cc: openssl-users > Subject: Re: [EXTERNAL] Re: bignum to evp key  > This is for some kind of artificial example code, isn't it? Because > in > a real world application of a DH/EC

Re: [EXTERNAL] Re: bignum to evp key

2022-03-04 Thread Tomas Mraz
mat. > From: Tomas Mraz > Sent: Friday, March 4, 2022 2:56 PM > To: Srinivas, Saketh (c) ; > openssl-users@openssl.org > Subject: [EXTERNAL] Re: bignum to evp key  > There is no straightforward way to do that. What do you want to do > with > the public and private EVP_PKE

Re: bignum to evp key

2022-03-04 Thread Tomas Mraz
There is no straightforward way to do that. What do you want to do with the public and private EVP_PKEYs? Tomas On Fri, 2022-03-04 at 07:28 +, Srinivas, Saketh (c) wrote: > HI, > > i have EvpKeyPair from GenerateEvpKeyPair(dh_p, dh_g, &pEvpKeyPair) > > How can I get the public key and priv

bignum to evp key

2022-03-03 Thread Srinivas, Saketh (c)
HI, i have EvpKeyPair from GenerateEvpKeyPair(dh_p, dh_g, &pEvpKeyPair) How can I get the public key and priv key from keypair. The below function gives them as bignums but not Evp_pkey. (EVP_PKEY_get_bn_param(pEvpKeyPair, OSSL_PKEY_PARAM_PUB_KEY, &pubKey) I want pub key and priv keys as evp_p