1*e71b7053SJung-uk Kim=pod 2*e71b7053SJung-uk Kim 3*e71b7053SJung-uk Kim=head1 NAME 4*e71b7053SJung-uk Kim 5*e71b7053SJung-uk KimEVP_chacha20, 6*e71b7053SJung-uk KimEVP_chacha20_poly1305 7*e71b7053SJung-uk Kim- EVP ChaCha20 stream cipher 8*e71b7053SJung-uk Kim 9*e71b7053SJung-uk Kim=head1 SYNOPSIS 10*e71b7053SJung-uk Kim 11*e71b7053SJung-uk Kim #include <openssl/evp.h> 12*e71b7053SJung-uk Kim 13*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_chacha20(void) 14*e71b7053SJung-uk Kim const EVP_CIPHER *EVP_chacha20_poly1305(void) 15*e71b7053SJung-uk Kim 16*e71b7053SJung-uk Kim=head1 DESCRIPTION 17*e71b7053SJung-uk Kim 18*e71b7053SJung-uk KimThe ChaCha20 stream cipher for EVP. 19*e71b7053SJung-uk Kim 20*e71b7053SJung-uk Kim=over 4 21*e71b7053SJung-uk Kim 22*e71b7053SJung-uk Kim=item EVP_chacha20() 23*e71b7053SJung-uk Kim 24*e71b7053SJung-uk KimThe ChaCha20 stream cipher. The key length is 256 bits, the IV is 96 bits long. 25*e71b7053SJung-uk Kim 26*e71b7053SJung-uk Kim=item EVP_chacha20_poly1305() 27*e71b7053SJung-uk Kim 28*e71b7053SJung-uk KimAuthenticated encryption with ChaCha20-Poly1305. Like EVP_chacha20(), the key 29*e71b7053SJung-uk Kimis 256 bits and the IV is 96 bits. This supports additional authenticated data 30*e71b7053SJung-uk Kim(AAD) and produces a 128-bit authentication tag. See the 31*e71b7053SJung-uk KimL<EVP_EncryptInit(3)/AEAD Interface> section for more information. 32*e71b7053SJung-uk Kim 33*e71b7053SJung-uk Kim=back 34*e71b7053SJung-uk Kim 35*e71b7053SJung-uk Kim=head1 RETURN VALUES 36*e71b7053SJung-uk Kim 37*e71b7053SJung-uk KimThese functions return an B<EVP_CIPHER> structure that contains the 38*e71b7053SJung-uk Kimimplementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for 39*e71b7053SJung-uk Kimdetails of the B<EVP_CIPHER> structure. 40*e71b7053SJung-uk Kim 41*e71b7053SJung-uk Kim=head1 SEE ALSO 42*e71b7053SJung-uk Kim 43*e71b7053SJung-uk KimL<evp(7)>, 44*e71b7053SJung-uk KimL<EVP_EncryptInit(3)>, 45*e71b7053SJung-uk KimL<EVP_CIPHER_meth_new(3)> 46*e71b7053SJung-uk Kim 47*e71b7053SJung-uk Kim=head1 COPYRIGHT 48*e71b7053SJung-uk Kim 49*e71b7053SJung-uk KimCopyright 2017 The OpenSSL Project Authors. All Rights Reserved. 50*e71b7053SJung-uk Kim 51*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License"). You may not use 52*e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 53*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 54*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 55*e71b7053SJung-uk Kim 56*e71b7053SJung-uk Kim=cut 57*e71b7053SJung-uk Kim 58