Skip to content

Commit e6be20b

Browse files
authored
Merge pull request #601 from libtom/fix-600
remove camellia tests if `LTC_TEST` is not defined
2 parents fde3e8c + 2fe75d3 commit e6be20b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ciphers/camellia.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ int camellia_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symme
621621

622622
int camellia_test(void)
623623
{
624+
#ifndef LTC_TEST
625+
return CRYPT_NOP;
626+
#else
624627
static const struct {
625628
int keylen;
626629
unsigned char key[32], pt[16], ct[16];
@@ -697,6 +700,7 @@ int camellia_test(void)
697700
}
698701
}
699702
return CRYPT_OK;
703+
#endif
700704
}
701705

702706
void camellia_done(symmetric_key *skey)

0 commit comments

Comments
 (0)