Re: EVP_CIPHER_CTX_init question

2008-03-06 Thread Dr. Stephen Henson
On Wed, Mar 05, 2008, John Parker wrote: > Is it appropriate to call the sequence > EVP_CipherInit_ex() > EVP_CipherUpdate_ex() > EVP_CipherFinal_ex() > > *multiple* times between init and cleanup? > Yes it is appropriate, in fact that is the most efficient way of doing things. By doing that c

EVP_CIPHER_CTX_init question

2008-03-05 Thread John Parker
Is it appropriate to call the sequence EVP_CipherInit_ex() EVP_CipherUpdate_ex() EVP_CipherFinal_ex() *multiple* times between init and cleanup? In other words, should I do this: EVP_CIPHER_CTX_init() EVP_CipherInit_ex() EVP_CipherUpdate_ex() EVP_CipherFinal_ex() EVP_CIPHER_CTX_cleanup() ... E