CVSROOT: /cvs Module name: src Changes by: [email protected] 2023/12/15 06:48:59
Modified files:
lib/libcrypto/evp: e_chacha20poly1305.c
Log message:
Fix a return value confusion in chacha20_poly1305_cipher()
On overlong input, chacha20_poly1305_cipher() would return 0, which in
EVP_CipherUpdate() and EVP_CipherFinal() signals success with no data
written since EVP_CIPH_FLAG_CUSTOM_CIPHER is set. In order to signal an
error, we need to return -1. Obviously.
ok jsing
