summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_chacha20poly1305.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/e_chacha20poly1305.c')
-rw-r--r--src/lib/libcrypto/evp/e_chacha20poly1305.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/e_chacha20poly1305.c b/src/lib/libcrypto/evp/e_chacha20poly1305.c
index a17657899b..33d09315e0 100644
--- a/src/lib/libcrypto/evp/e_chacha20poly1305.c
+++ b/src/lib/libcrypto/evp/e_chacha20poly1305.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_chacha20poly1305.c,v 1.30 2023/07/07 19:37:53 beck Exp $ */ 1/* $OpenBSD: e_chacha20poly1305.c,v 1.31 2023/08/24 04:33:08 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
@@ -106,7 +106,7 @@ poly1305_pad16(poly1305_state *poly1305, size_t data_len)
106 static const unsigned char zero_pad16[16]; 106 static const unsigned char zero_pad16[16];
107 size_t pad_len; 107 size_t pad_len;
108 108
109 /* pad16() is defined in RFC 7539 2.8.1. */ 109 /* pad16() is defined in RFC 8439 2.8.1. */
110 if ((pad_len = data_len % 16) == 0) 110 if ((pad_len = data_len % 16) == 0)
111 return; 111 return;
112 112
@@ -330,7 +330,7 @@ aead_xchacha20_poly1305_open(const EVP_AEAD_CTX *ctx, unsigned char *out,
330 return 1; 330 return 1;
331} 331}
332 332
333/* RFC 7539 */ 333/* RFC 8439 */
334static const EVP_AEAD aead_chacha20_poly1305 = { 334static const EVP_AEAD aead_chacha20_poly1305 = {
335 .key_len = 32, 335 .key_len = 32,
336 .nonce_len = CHACHA20_NONCE_LEN, 336 .nonce_len = CHACHA20_NONCE_LEN,