CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2014/05/26 07:01:58
Modified files: lib/libssl/src/crypto/evp: e_aes.c e_chacha20poly1305.c evp.h evp_aead.c evp_locl.h Log message: Implement an improved version of the EVP AEAD API. The EVP_AEAD_CTX_{open,seal} functions previously returned an ssize_t that was overloaded to indicate success/failure, along with the number of bytes written as output. This change adds an explicit *out_len argument which is used to return the number of output bytes and the return value is now an int that is purely used to identify success or failure. This change effectively rides the last libcrypto crank (although I do not expect there to be many users of the EVP AEAD API currently). Thanks to Adam Langley for providing the improved code that this diff is based on. ok miod@