Browse Source

Merge pull request #601 from libtom/fix-600

remove camellia tests if `LTC_TEST` is not defined
Steffen Jaeckel 3 years ago
parent
commit
e6be20bfc7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/ciphers/camellia.c

+ 4 - 0
src/ciphers/camellia.c

@@ -621,6 +621,9 @@ int camellia_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symme
 
 int camellia_test(void)
 {
+#ifndef LTC_TEST
+   return CRYPT_NOP;
+#else
    static const struct {
       int keylen;
       unsigned char key[32], pt[16], ct[16];
@@ -697,6 +700,7 @@ int camellia_test(void)
       }
    }
    return CRYPT_OK;
+#endif
 }
 
 void camellia_done(symmetric_key *skey)