remove camellia tests if LTC_TEST is not defined

Fixes #600

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel 2022-09-13 11:54:47 +02:00 committed by Jamie Reece Wilson
parent 3c05f2b65a
commit 82ec3fea54

View File

@ -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)