RE: EVP initialization question

2001-07-24 Thread Dale Peakall
> So, does EVP_CIPHER_CTX_cleanup free the context's memory as well as > clearing it, or is that left to me? I can't seem to find that > in the man pages... A quick inspection of the code, suggests that NO memory is actually allocated (the EVP_CIPHER_CTX contains pre-sized buffers for all the ne

RE: EVP initialization question

2001-07-24 Thread Haig C Didizian
Thanks for your reply. So, does EVP_CIPHER_CTX_cleanup free the context's memory as well as clearing it, or is that left to me? I can't seem to find that in the man pages... Thanks again, Haig On 24 Jul 2001 12:36:22 +0100, Dale Peakall wrote: > > I guess I'm unclear about whether a context is

RE: EVP initialization question

2001-07-24 Thread Dale Peakall
> I guess I'm unclear about whether a context is something that's applicable to an > entire session or simply to one message. I tried it the former way, but > when I went to encrypt the second message, it included a part of the first > message that it had encrypted, which leads me to believe that

EVP initialization question

2001-07-23 Thread Haig C Didizian
Hi there, Sorry if this has been covered before... I'm working on some software that needs to encrypt messages between two parties. I'm using OpenSSL's EVP functions, and I'm wondering if I need to use EVP_Encrypt/DecryptInit and EVP_CIPHER_CTX_cleanup for each message that I encrypt. I guess I'm