Hi all,

Documentation says that, for EVP_EncryptUpdate, buffer of length (input length 
+ cipher block size - 1) should be passed to output parameter.

Suppose if we take AES-128, if the input length is 33, output written by 
EVP_EncryptUpdate will be 32. So, possible size could be 
((input_length)/(cipher_block_size))*(cipher_block_size). What is the reason 
for passing buffer of size (input length + cipher block size - 1)? Similarly 
for EVP_DecryptUpdate, according to documentation, we have to pass (input 
length + cipher block size).

As I can think of, all block ciphers have equal input block size and output 
block size. Documentation says that amount of data written depends on the block 
alignment of the encrypted data. 

Can someone explain this to me?

I searched answers on the web and could not find anything useful.

Thanks in advance
DP



       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to