OpenSSL, aes.h, AES_cbc_encrypt(): length parameter?
I am using the aes.h function AES_cbc_encrypt(*in, *out, length, *key, *ivec, enc). I am wondering whether the length parameter is the size of "in" array or the size of the array being used for "out?" I looked for parameter definitions on the openssl site and couldn't find such a thing (there or anywhere else).
Thanks in advance. Brandon |
The docs on openssl.org seem to be missing the aes page, but I looked at the des one which has a similar interface:
Quote:
|
Thanks, but I'm not sure you answered the question. Does the length parameter refer to the input buffer or the output buffer?
|
The length refers to both input and output, except that the output length is rounded up to the nearest multiple of the block size.
|
So, presumably it refers to the input length before padding?
|
Quote:
|
All times are GMT -5. The time now is 05:21 AM. |