]> git.ipfire.org Git - thirdparty/openssl.git/commit
Clarify EVP_CipherUpdate() authenticated bytes behavior
authorerbsland-dev <github@erbsland.dev>
Mon, 22 Jul 2024 08:26:17 +0000 (10:26 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 Sep 2024 15:14:18 +0000 (17:14 +0200)
commitd15077d336e4b6144f8a5fdb0c1bb58ca9d3552f
tree63064600c63a55e6e296c4e84d26e125942482e8
parent71ae46618108a095e6e10a875a59afb526548d3b
Clarify EVP_CipherUpdate() authenticated bytes behavior

Fixes #8310: Document that the number of authenticated bytes returned by EVP_CipherUpdate() varies with the cipher used. Mention that stream ciphers like ChaCha20 can handle 1 byte at a time, while OCB mode requires processing data one block at a time. Ensure it's clear that passing unpadded data in one call is safe.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24961)
doc/man3/EVP_EncryptInit.pod