EVP_chacha20.pod 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. =pod
  2. =head1 NAME
  3. EVP_chacha20,
  4. EVP_chacha20_poly1305
  5. - EVP ChaCha20 stream cipher
  6. =head1 SYNOPSIS
  7. #include <openssl/evp.h>
  8. const EVP_CIPHER *EVP_chacha20(void)
  9. const EVP_CIPHER *EVP_chacha20_poly1305(void)
  10. =head1 DESCRIPTION
  11. The ChaCha20 stream cipher for EVP.
  12. =over 4
  13. =item EVP_chacha20()
  14. The ChaCha20 stream cipher. The key length is 256 bits, the IV is 96 bits long.
  15. =item EVP_chacha20_poly1305()
  16. Authenticated encryption with ChaCha20-Poly1305. Like EVP_chacha20(), the key
  17. is 256 bits and the IV is 96 bits. This supports additional authenticated data
  18. (AAD) and produces a 128-bit authentication tag. See the
  19. L<EVP_EncryptInit(3)/AEAD Interface> section for more information.
  20. =back
  21. =head1 RETURN VALUES
  22. These functions return an B<EVP_CIPHER> structure that contains the
  23. implementation of the symmetric cipher. See L<EVP_CIPHER_meth_new(3)> for
  24. details of the B<EVP_CIPHER> structure.
  25. =head1 SEE ALSO
  26. L<evp(7)>,
  27. L<EVP_EncryptInit(3)>,
  28. L<EVP_CIPHER_meth_new(3)>
  29. =head1 COPYRIGHT
  30. Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
  31. Licensed under the Apache License 2.0 (the "License"). You may not use
  32. this file except in compliance with the License. You can obtain a copy
  33. in the file LICENSE in the source distribution or at
  34. L<https://www.openssl.org/source/license.html>.
  35. =cut