Skip to content

Commit 6170ba5

Browse files
levittesjaeckel
authored andcommitted
fix: tests/cipher_hash_test.c failed to use aes_enc_test
Depending on build circumstances, the AES test function is either aes_test() or aes_enc_test().
1 parent 668bd74 commit 6170ba5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cipher_hash_test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ int cipher_hash_test(void)
2020
}
2121
DO(rijndael_test());
2222
#endif
23+
#if defined(LTC_RIJNDAEL)
24+
#ifndef ENCRYPT_ONLY
25+
DO(aes_test());
26+
#else
2327
DO(aes_enc_test());
28+
#endif
29+
#endif
2430

2531
/* test stream ciphers */
2632
#ifdef LTC_CHACHA

0 commit comments

Comments
 (0)