summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mem_clr.c
diff options
context:
space:
mode:
authortb <>2023-12-15 13:48:59 +0000
committertb <>2023-12-15 13:48:59 +0000
commit51088b62ca9f22f2160fa0ce90bdd0441e8178dd (patch)
tree1a7bd27a2765b812f4ef633b95f00e3b5a3f4d2f /src/lib/libcrypto/mem_clr.c
parentd97db60c4f81d255da31d14e7811f19d3505ff6b (diff)
downloadopenbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.tar.gz
openbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.tar.bz2
openbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.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/libcrypto/mem_clr.c')
0 files changed, 0 insertions, 0 deletions