Hello, > I am trying to use OpenSSL to encrypt/decrypt some data for that > I am using EVP_* API. I have a question about EVP_En/DecryptUpdate function. > The second param of these functions is a pointer to a buffer where the > En/Decrypted data will be copied by the function, but I wasn't able to find > how wide the buffer should be allocated before calling the function. I've > noticied that for Blowfish cbc cipher, the output data is equal to input > data size. Would that be OK to *always* allocate the output buffer of the > same size as that of input buffer (the fourth param) for *any* cipher ??? > Lastly, what should be the output buffer size for En/DecryptFinal API??? This information is clearly presented in EVP_EncryptUpdate man page.
Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]