From 4083e077a403f290cc1776def4fa6086f32b7094 Mon Sep 17 00:00:00 2001 From: darosior Date: Thu, 17 Oct 2019 10:24:33 +0200 Subject: [PATCH] configure: test XChaCha20Poly1305 stream state for HAVE_GOOD_LIBSODIUM author: @rustyrussell --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index 6f596447b..88d7af456 100755 --- a/configure +++ b/configure @@ -238,9 +238,16 @@ link=-lsodium code= #include #include +#include int main(void) { + crypto_secretstream_xchacha20poly1305_state crypto_state; + unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES]; + unsigned char data[] = { 1, 2, 3 }; + + crypto_secretstream_xchacha20poly1305_init_push(&crypto_state, header, + data); printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt); printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES); return 0;