title: M2Crypto: Is PKey a reference to a Public or a Private key?
body: <p>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.</p>
  
  <p>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: <a href="http://linux.die.net/man/3/evp_pkey_new" rel="nofollow noreferrer">http://linux.die.net/man/3/evp_pkey_new</a> , should allocate a new reference to a private key structure!</p>
  
  <p>There are two only possible explaination: The M2Crypto documentation is wrong or the link I've reported has wrong informations.</p>
  
  <p>Can someone help me to find the truth?</p>