M2Crypto: Is PKey a reference to a Public or a Private key?

Posted by Andrea Zilio on Stack Overflow See other posts from Stack Overflow or by Andrea Zilio
Published on 2010-05-01T13:00:57Z Indexed on 2010/05/01 13:07 UTC
Read the original article Hit count: 235

Filed under:
|
|

In the PKey class documentation of the M2Crypto python package (an OpenSSL wrapper for Python) it is said that PKey is a reference to a Public key.

My opinion is instead that it's a reference to a Private Key because the init method of the PKey class calls the evp_pkey_new openssl function that, from this link: http://linux.die.net/man/3/evp_pkey_new , should allocate a new reference to a private key structure!

There are two only possible explaination: The M2Crypto documentation is wrong or the link I've reported has wrong informations.

Can someone help me to find the truth?

© Stack Overflow or respective owner

Related posts about m2crypto

Related posts about openssl