summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/ChaCha.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/ChaCha.3')
-rw-r--r--src/lib/libcrypto/man/ChaCha.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/ChaCha.3 b/src/lib/libcrypto/man/ChaCha.3
index 909d8ca77d..6b037f80ad 100644
--- a/src/lib/libcrypto/man/ChaCha.3
+++ b/src/lib/libcrypto/man/ChaCha.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ChaCha.3,v 1.1 2020/06/24 17:00:38 schwarze Exp $ 1.\" $OpenBSD: ChaCha.3,v 1.2 2020/06/24 18:15:00 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -71,7 +71,7 @@
71.Fc 71.Fc
72.Sh DESCRIPTION 72.Sh DESCRIPTION
73These functions provide a low-level implementation 73These functions provide a low-level implementation
74of the ChaCha stream cipher with 256 and 128 bit keys. 74of the ChaCha stream cipher with 256 and 128-bit keys.
75The number of rounds is hardcoded to 20; 75The number of rounds is hardcoded to 20;
76variants with 8 or 12 rounds are not supported. 76variants with 8 or 12 rounds are not supported.
77.Pp 77.Pp
@@ -216,16 +216,16 @@ from the first two thirds of
216RFC 8439: ChaCha20 and Poly1305 for IETF Protocols 216RFC 8439: ChaCha20 and Poly1305 for IETF Protocols
217.Pp 217.Pp
218Note that the standard specifies 218Note that the standard specifies
219a 32 bit counter and a 96 bit initialization vector whereas 219a 32-bit counter and a 96-bit initialization vector whereas
220this implementation follows Bernstein's original specification 220this implementation follows Bernstein's original specification
221and uses a 64 bit counter and a 64 bit initialization vector. 221and uses a 64-bit counter and a 64-bit initialization vector.
222.Pp 222.Pp
223These functions are specific to LibreSSL and not provided by OpenSSL. 223These functions are specific to LibreSSL and not provided by OpenSSL.
224BoringSSL does provide 224BoringSSL does provide
225.Fn CRYPTO_chacha_20 , 225.Fn CRYPTO_chacha_20 ,
226but with an incompatible interface, taking a 96 bit 226but with an incompatible interface, taking a 96-bit
227.Fa iv 227.Fa iv
228and a 32 bit 228and a 32-bit
229.Fa counter . 229.Fa counter .
230.Sh HISTORY 230.Sh HISTORY
231.Fn ChaCha_set_key , 231.Fn ChaCha_set_key ,