Просмотр исходного кода

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 год назад
Родитель
Сommit
6170ba5205
1 измененных файлов с 6 добавлено и 0 удалено
  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());
 #endif
+#if defined(LTC_RIJNDAEL)
+#ifndef ENCRYPT_ONLY
+   DO(aes_test());
+#else
    DO(aes_enc_test());
+#endif
+#endif
 
    /* test stream ciphers */
 #ifdef LTC_CHACHA