Re: Encrypt/Decrypt using EVP_Cipher functions - repost PLEASE HELP

2004-04-22 Thread Dr. Stephen Henson
On Thu, Apr 22, 2004, Eric Morris wrote: > Dr. Henson, > > Can you interleave encryption and decryption without repeated calls to > EVP_CipherInit and/or EVP_CipherFinal? > If not, which calls are required between encryption calls and decryption > calls? > As I indicated you are best using tw

Re: Encrypt/Decrypt using EVP_Cipher functions - repost PLEASE HELP

2004-04-22 Thread Eric Morris
Dr. Henson, Can you interleave encryption and decryption without repeated calls to EVP_CipherInit and/or EVP_CipherFinal? If not, which calls are required between encryption calls and decryption calls? Thanks for the help - Eric Morris Dr. Stephen Henson wrote: On Thu, Apr 22, 2004, Er

Re: Encrypt/Decrypt using EVP_Cipher functions - repost PLEASE HELP

2004-04-22 Thread Dr. Stephen Henson
On Thu, Apr 22, 2004, Eric Morris wrote: > I have a situation where an application may switch from reading to > writing and back again at random. Do I need a ctx context each for > decryption / encryption, or can I use the same ctx in sequence on the file? > > When switching from reading to wr

Encrypt/Decrypt using EVP_Cipher functions - repost PLEASE HELP

2004-04-22 Thread Eric Morris
I have a situation where an application may switch from reading to writing and back again at random. Do I need a ctx context each for decryption / encryption, or can I use the same ctx in sequence on the file? When switching from reading to writing (and vice versa), do I need to detect this ch