diff options
author | tb <> | 2023-12-15 13:48:59 +0000 |
---|---|---|
committer | tb <> | 2023-12-15 13:48:59 +0000 |
commit | 97bbd96798da817300fbf00b33e26be7edd67163 (patch) | |
tree | 1a7bd27a2765b812f4ef633b95f00e3b5a3f4d2f /src/lib/libc/stdlib/merge.c | |
parent | 33938838e6871c50d612d2a8ed137a1557e9c72f (diff) | |
download | openbsd-97bbd96798da817300fbf00b33e26be7edd67163.tar.gz openbsd-97bbd96798da817300fbf00b33e26be7edd67163.tar.bz2 openbsd-97bbd96798da817300fbf00b33e26be7edd67163.zip |
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
Diffstat (limited to 'src/lib/libc/stdlib/merge.c')
0 files changed, 0 insertions, 0 deletions