-# $OpenBSD: Makefile,v 1.7 2022/07/30 16:40:23 jsing Exp $
+# $OpenBSD: Makefile,v 1.8 2022/08/20 19:25:14 jsing Exp $
PROG= aeadtest
-LDADD= -lcrypto
+LDADD= ${CRYPTO_INT}
DPADD= ${LIBCRYPTO}
WARNINGS= Yes
CFLAGS+= -DLIBRESSL_INTERNAL -Werror
-/* $OpenBSD: aeadtest.c,v 1.22 2022/07/30 17:09:45 jsing Exp $ */
+/* $OpenBSD: aeadtest.c,v 1.23 2022/08/20 19:25:14 jsing Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2014, Google Inc.
*cipher = EVP_aes_256_gcm();
} else if (strcmp(name, "chacha20-poly1305") == 0) {
*aead = EVP_aead_chacha20_poly1305();
+ *cipher = EVP_chacha20_poly1305();
} else if (strcmp(name, "xchacha20-poly1305") == 0) {
*aead = EVP_aead_xchacha20_poly1305();
} else {