1EVP_CHACHA20(3)                     OpenSSL                    EVP_CHACHA20(3)
2
3
4

NAME

6       EVP_chacha20, EVP_chacha20_poly1305 - EVP ChaCha20 stream cipher
7

SYNOPSIS

9        #include <openssl/evp.h>
10
11        const EVP_CIPHER *EVP_chacha20(void)
12        const EVP_CIPHER *EVP_chacha20_poly1305(void)
13

DESCRIPTION

15       The ChaCha20 stream cipher for EVP.
16
17       EVP_chacha20()
18           The ChaCha20 stream cipher. The key length is 256 bits, the IV is
19           96 bits long.
20
21       EVP_chacha20_poly1305()
22           Authenticated encryption with ChaCha20-Poly1305. Like
23           EVP_chacha20(), the key is 256 bits and the IV is 96 bits. This
24           supports additional authenticated data (AAD) and produces a 128-bit
25           authentication tag. See the "AEAD Interface" in EVP_EncryptInit(3)
26           section for more information.
27

RETURN VALUES

29       These functions return an EVP_CIPHER structure that contains the
30       implementation of the symmetric cipher. See EVP_CIPHER_meth_new(3) for
31       details of the EVP_CIPHER structure.
32

SEE ALSO

34       evp(7), EVP_EncryptInit(3), EVP_CIPHER_meth_new(3)
35
37       Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
38
39       Licensed under the OpenSSL license (the "License").  You may not use
40       this file except in compliance with the License.  You can obtain a copy
41       in the file LICENSE in the source distribution or at
42       <https://www.openssl.org/source/license.html>.
43
44
45
461.1.1                             2018-09-11                   EVP_CHACHA20(3)
Impressum