summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_chacha20poly1305.c
diff options
context:
space:
mode:
authortb <>2023-08-24 04:33:08 +0000
committertb <>2023-08-24 04:33:08 +0000
commit14e26ad5d225e7e7a8fdad4bd07c1850bb8669af (patch)
tree45fa3a8aee09dfb553e266f49e6783a3756b02f0 /src/lib/libcrypto/evp/e_chacha20poly1305.c
parent851839832e584adcccd0414ca001abedc4e7fbc1 (diff)
downloadopenbsd-14e26ad5d225e7e7a8fdad4bd07c1850bb8669af.tar.gz
openbsd-14e26ad5d225e7e7a8fdad4bd07c1850bb8669af.tar.bz2
openbsd-14e26ad5d225e7e7a8fdad4bd07c1850bb8669af.zip
Update references from RFC 7539 to RFC 8439
RFC 7539 was superseded by RFC 8439, incorporating errata and making editorial improvements. Very little of substance changed, in particular section numbers remain the same. Prompted by a question from schwarze
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,