On 28/04/15 22:10, Nayna Jain wrote: > Is there any other way to store private key and public key rather than > in PEM format in file ? > > I mean API to store public and private key separately in memory. You mean like this: https://www.openssl.org/docs/crypto/d2i_RSAPublicKey Matt