On 5 Mar 2013, at 6:57 AM, Greg Keene wrote: > Is there an API that will allow me to read an encrypted file directly into > memory? If possible I would like to bypass decrypting the file and writing > it back out to the hard drive.
What format is the encrypted file in? If it's just (for example) raw AES-GMAC and you have the key through some other means, look at the EVP functions (EVP_CipherInit(), etc). If it's in a container of some kind, like CMS, there may be openssl functions for reading that as well. In some cases you can stream it using BIOs; you may have to resort to reading the encrypted file into memory and then decrypting it into another buffer (also in memory). There shouldn't be any need to write the plaintext out to disk. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org