Hello. There might be a problem with EVP_DecryptUpdate.
My understanding was that EVP_EncryptUpdate can be called multiple times and then conclude the encryption by calling EVP_EncryptFinal. A similar mechanism applies for EVP_DecryptUpdate and EVP_DecryptFinal. In a test that I am running where two blocks of 16 bytes are encrypted by calling EVP_EncryptUpdate twice (each on 16 bytes) and then EVP_EncryptFinal, when I want to perform the decryption in a similar manner, the first call of EVP_DecryptUpdate on the first 16 bytes reports that only 8 bytes where decrypted. Shouldn't this be 16? The encryption works correctly because if I do DecryptUpdate on the 40 bytes resulted from the encruption (16+16+8) and then DecryptFinal everything works fine. I noticed this problem on version 0.9.6c and Jan 10 snapshot. thank you for your help, -- Cristina Nita-Rotaru ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]