Add EVP_chacha20_poly1305()
authortb <tb@openbsd.org>
Fri, 21 Oct 2022 13:39:35 +0000 (13:39 +0000)
committertb <tb@openbsd.org>
Fri, 21 Oct 2022 13:39:35 +0000 (13:39 +0000)
Omission reported by jca.

ok jca jsing

lib/libcrypto/evp/c_all.c

index 690215c..8fc1aa6 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_all.c,v 1.27 2022/01/14 08:38:05 tb Exp $ */
+/* $OpenBSD: c_all.c,v 1.28 2022/10/21 13:39:35 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -224,6 +224,9 @@ OpenSSL_add_all_ciphers_internal(void)
 #ifndef OPENSSL_NO_CHACHA
        EVP_add_cipher(EVP_chacha20());
 #endif
+#if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)
+       EVP_add_cipher(EVP_chacha20_poly1305());
+#endif
 
 #ifndef OPENSSL_NO_GOST
        EVP_add_cipher(EVP_gost2814789_ecb());