Re: [openssl-users] Checking if an EVP_PKEY* contains a private key

2015-12-22 Thread Dr. Stephen Henson
On Tue, Dec 22, 2015, Viktor Dukhovni wrote: > On Mon, Dec 21, 2015 at 09:29:03PM -0800, Stephen Kou wrote: > > > OpenSSL has the higher-level EVP_PKEY_* functions which work abstracts > > the public key cryptography algorithms. However, sometimes a EVP_PKEY* > > only has a public key. How coul

Re: [openssl-users] Checking if an EVP_PKEY* contains a private key

2015-12-22 Thread Viktor Dukhovni
On Mon, Dec 21, 2015 at 09:29:03PM -0800, Stephen Kou wrote: > OpenSSL has the higher-level EVP_PKEY_* functions which work abstracts > the public key cryptography algorithms. However, sometimes a EVP_PKEY* > only has a public key. How could I check if a given EVP_PKEY* contains > a private key?

Re: [openssl-users] Checking if an EVP_PKEY* contains a private key

2015-12-21 Thread Victor Wagner
On Mon, 21 Dec 2015 21:29:03 -0800 Stephen Kou wrote: > OpenSSL has the higher-level EVP_PKEY_* functions which work > abstracts the public key cryptography algorithms. However, sometimes > a EVP_PKEY* only has a public key. How could I check if a given > EVP_PKEY* contains a private key? I co