瀏覽代碼

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 年之前
父節點
當前提交
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