On Mon, Oct 29, 2012, Gerardo Ganis wrote:

> 
>     Dear OpenSSL Users,
> 
>     Could someone confirm that when loading private keys in memory using
> PEM_read_PrivateKey
> 
>          EVP_PKEY *evpp = PEM_read_PrivateKey(fk, 0, 0, 0);
> 
>     the full key is filled in, i.e. evpp points to a complete
> (public+private) key?
>     By analyzing the structure after the call it looks so, but since it
> is not documented, I was wondering
>     whether it is something on which I can count on; if not what is the
> advised way to load a complete
>     key in memory?
> 

Yes. The data read in either contains the public key components (RSAPrivateKey
for example) or the public key components are calculated (e.g. DSA
and PKCS#8).

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to