From 21263b55fe7998986a972c01009f57e2cdcc434d Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 26 Jan 2020 07:36:43 +0000 Subject: Document the change in EVP_chacha20(3). Discussed with jsing --- src/lib/libcrypto/man/EVP_EncryptInit.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/libcrypto/man/EVP_EncryptInit.3 b/src/lib/libcrypto/man/EVP_EncryptInit.3 index 33fb6938fd..2cf9150597 100644 --- a/src/lib/libcrypto/man/EVP_EncryptInit.3 +++ b/src/lib/libcrypto/man/EVP_EncryptInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_EncryptInit.3,v 1.37 2020/01/22 22:56:07 tb Exp $ +.\" $OpenBSD: EVP_EncryptInit.3,v 1.38 2020/01/26 07:36:43 tb Exp $ .\" full merge up to: OpenSSL 5211e094 Nov 11 14:39:11 2014 -0800 .\" EVP_bf_cbc.pod EVP_cast5_cbc.pod EVP_idea_cbc.pod EVP_rc2_cbc.pod .\" 7c6d372a Nov 20 13:20:01 2018 +0000 @@ -71,7 +71,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: January 22 2020 $ +.Dd $Mdocdate: January 26 2020 $ .Dt EVP_ENCRYPTINIT 3 .Os .Sh NAME @@ -1029,7 +1029,9 @@ is an alias for implemented as a macro. .It Fn EVP_chacha20 The ChaCha20 stream cipher. -The key length is 256 bits, the IV is 64 bits long. +The key length is 256 bits. +The first 32 bit of the 128 bit IV are used as a counter, +the remaining 96 bit as a nonce. .El .Pp See also -- cgit v1.2.3-55-g6feb