diff options
author | jmc <> | 2020-06-24 18:15:00 +0000 |
---|---|---|
committer | jmc <> | 2020-06-24 18:15:00 +0000 |
commit | 7cf633fcec3c8fa2f0cf16458c93b1b4f7cd4b2c (patch) | |
tree | b93cb160b6b844ab6508bbea31a84a5b0a09cae8 /src/lib/libcrypto/man/ChaCha.3 | |
parent | dd53a681ba46ce20012e28fb7cac84550523b4c0 (diff) | |
download | openbsd-7cf633fcec3c8fa2f0cf16458c93b1b4f7cd4b2c.tar.gz openbsd-7cf633fcec3c8fa2f0cf16458c93b1b4f7cd4b2c.tar.bz2 openbsd-7cf633fcec3c8fa2f0cf16458c93b1b4f7cd4b2c.zip |
use n-bit <noun> consistently; ok schwarze for the principal of the idea,
and for flagging which pages to check;
Diffstat (limited to 'src/lib/libcrypto/man/ChaCha.3')
-rw-r--r-- | src/lib/libcrypto/man/ChaCha.3 | 12 |
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 |
73 | These functions provide a low-level implementation | 73 | These functions provide a low-level implementation |
74 | of the ChaCha stream cipher with 256 and 128 bit keys. | 74 | of the ChaCha stream cipher with 256 and 128-bit keys. |
75 | The number of rounds is hardcoded to 20; | 75 | The number of rounds is hardcoded to 20; |
76 | variants with 8 or 12 rounds are not supported. | 76 | variants with 8 or 12 rounds are not supported. |
77 | .Pp | 77 | .Pp |
@@ -216,16 +216,16 @@ from the first two thirds of | |||
216 | RFC 8439: ChaCha20 and Poly1305 for IETF Protocols | 216 | RFC 8439: ChaCha20 and Poly1305 for IETF Protocols |
217 | .Pp | 217 | .Pp |
218 | Note that the standard specifies | 218 | Note that the standard specifies |
219 | a 32 bit counter and a 96 bit initialization vector whereas | 219 | a 32-bit counter and a 96-bit initialization vector whereas |
220 | this implementation follows Bernstein's original specification | 220 | this implementation follows Bernstein's original specification |
221 | and uses a 64 bit counter and a 64 bit initialization vector. | 221 | and uses a 64-bit counter and a 64-bit initialization vector. |
222 | .Pp | 222 | .Pp |
223 | These functions are specific to LibreSSL and not provided by OpenSSL. | 223 | These functions are specific to LibreSSL and not provided by OpenSSL. |
224 | BoringSSL does provide | 224 | BoringSSL does provide |
225 | .Fn CRYPTO_chacha_20 , | 225 | .Fn CRYPTO_chacha_20 , |
226 | but with an incompatible interface, taking a 96 bit | 226 | but with an incompatible interface, taking a 96-bit |
227 | .Fa iv | 227 | .Fa iv |
228 | and a 32 bit | 228 | and 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 , |