diff --git a/configure b/configure index a2902e6c6..cde3b8e37 100755 --- a/configure +++ b/configure @@ -398,10 +398,11 @@ int main(void) { crypto_secretstream_xchacha20poly1305_state crypto_state; unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES]; - unsigned char data[] = { 1, 2, 3 }; + unsigned char key[crypto_secretstream_xchacha20poly1305_KEYBYTES]; + crypto_secretstream_xchacha20poly1305_keygen(key); crypto_secretstream_xchacha20poly1305_init_push(&crypto_state, header, - data); + key); printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt); printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES); return 0;