From b1e593790192a372a3976ce859bd1708b43dc952 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Tue, 12 Sep 2023 13:58:06 +0000 Subject: document the constant EVP_CHACHAPOLY_TLS_TAG_LEN --- src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 | 5 ++++- src/lib/libcrypto/man/EVP_chacha20.3 | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 b/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 index 02f6e275d1..01692c93e6 100644 --- a/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 +++ b/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.14 2023/09/12 13:29:38 schwarze Exp $ +.\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.15 2023/09/12 13:58:06 schwarze Exp $ .\" .\" Copyright (c) 2014, Google Inc. .\" Parts of the text were written by Adam Langley and David Benjamin. @@ -279,6 +279,9 @@ ChaCha20 with a Poly1305 authenticator, using a of 32 bytes and a .Fa nonce_len of 12 bytes. +The constant +.Dv EVP_CHACHAPOLY_TLS_TAG_LEN +specifies the length of the authentication tag in bytes and has a value of 16. .It Fn EVP_aead_xchacha20_poly1305 XChaCha20 with a Poly1305 authenticator, using a .Fa key_len diff --git a/src/lib/libcrypto/man/EVP_chacha20.3 b/src/lib/libcrypto/man/EVP_chacha20.3 index 14a26b3043..8d0be1ed64 100644 --- a/src/lib/libcrypto/man/EVP_chacha20.3 +++ b/src/lib/libcrypto/man/EVP_chacha20.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_chacha20.3,v 1.6 2023/08/24 04:33:08 tb Exp $ +.\" $OpenBSD: EVP_chacha20.3,v 1.7 2023/09/12 13:58:06 schwarze Exp $ .\" full merge up to: OpenSSL 35fd9953 May 28 14:49:38 2019 +0200 .\" .\" This file is a derived work. @@ -65,7 +65,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: August 24 2023 $ +.Dd $Mdocdate: September 12 2023 $ .Dt EVP_CHACHA20 3 .Os .Sh NAME @@ -135,6 +135,9 @@ argument of 32 bytes = 256 bits and an argument of 12 bytes = 96 bits. This supports additional authenticated data (AAD) and produces a 128-bit authentication tag. +The constant +.Dv EVP_CHACHAPOLY_TLS_TAG_LEN +specifies the length of the authentication tag in bytes and has a value of 16. .Pp The following .Fa type -- cgit v1.2.3-55-g6feb