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()
....
EVP_CIPHER_CTX_init()
EVP_CipherInit_ex()
EVP_CipherUpdate_ex()
EVP_CipherFinal_ex()
EVP_CIPHER_CTX_cleanup()

or can I do this:
EVP_CIPHER_CTX_init()
EVP_CipherInit_ex()
EVP_CipherUpdate_ex()
EVP_CipherFinal_ex()
....
EVP_CipherInit_ex()
EVP_CipherUpdate_ex()
EVP_CipherFinal_ex()
EVP_CIPHER_CTX_cleanup()

Thanks,

-JP
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org