Browse Source

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().
Richard Levitte 1 year ago
parent
commit
6170ba5205
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/cipher_hash_test.c

+ 6 - 0
tests/cipher_hash_test.c

@@ -20,7 +20,13 @@ int cipher_hash_test(void)
    }
    }
    DO(rijndael_test());
    DO(rijndael_test());
 #endif
 #endif
+#if defined(LTC_RIJNDAEL)
+#ifndef ENCRYPT_ONLY
+   DO(aes_test());
+#else
    DO(aes_enc_test());
    DO(aes_enc_test());
+#endif
+#endif
 
 
    /* test stream ciphers */
    /* test stream ciphers */
 #ifdef LTC_CHACHA
 #ifdef LTC_CHACHA