Thank you for the response, Jim

2007/7/20, Jim Fox <[EMAIL PROTECTED]>:


You have to save the entire encrypted block.  cipher_final
will tell you the length of the padded and encrypted block.


So, should i assume that encrypted buffer will always be a multiple of
block_size ...
I would say that my application can't allow that though.


The EVP_CIPHER_CTX_set_padding only applies to encryption, and
is enabled by default - so you don't need it anywhere.


Yeah, that was just to make sure.

When decrypting cipher_final will tell you the length of the
decrypted data.


But how can i know how many bytes long was the original buffer? (since each
one will have different lengths, but when decrypting, all will be padded up
to multiple of block size)

Jim


Thanks

--
Jorge Fernandez

Reply via email to