]> 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:15:12 +0000 (17:15 +0200)
commit491b9d7f66bde455edcd55ffabeee508f3a3cc0e
tree50edb7c177a1e9f195450115808147e7215f6588
parent4d2d4b6a6d499abc8c76420c50d28a2adc4c4f39
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)

(cherry picked from commit d15077d336e4b6144f8a5fdb0c1bb58ca9d3552f)
doc/man3/EVP_EncryptInit.pod