Skip to content

Commit a66bd69

Browse files
committed
remove CHACHA macro, add check
1 parent 407ee3c commit a66bd69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/api/test_chacha20_poly1305.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int test_wc_ChaCha20Poly1305_aead(void)
161161
int test_wc_XChaCha20Poly1305_aead(void)
162162
{
163163
EXPECT_DECLS;
164-
#if defined(HAVE_CHACHA) && defined(HAVE_POLY1305) && defined(HAVE_XCHACHA)
164+
#if defined(HAVE_POLY1305) && defined(HAVE_XCHACHA)
165165
const byte key[] = {
166166
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
167167
0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
@@ -230,7 +230,7 @@ int test_wc_XChaCha20Poly1305_aead(void)
230230
outLen, aad, sizeof(aad), nonce, sizeof(nonce),
231231
key, sizeof(key)), 0);
232232
ExpectIntEQ(XMEMCMP(plain_out, plaintext, sizeof(plaintext)), 0);
233-
233+
m
234234
/* Test Encrypt bad args. */
235235
ExpectIntEQ(wc_XChaCha20Poly1305_Encrypt(NULL, sizeof(out), plaintext,
236236
sizeof(plaintext), aad, sizeof(aad), nonce, sizeof(nonce),

0 commit comments

Comments
 (0)