Skip to content

Commit e3937a2

Browse files
committed
fix compile warning when building w/o tests
1 parent 11338d2 commit e3937a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/modes/xts/xts_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#ifdef LTC_XTS_MODE
1212

13+
#ifndef LTC_NO_TEST
1314
static int _xts_test_accel_xts_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long blocks,
1415
unsigned char *tweak, symmetric_key *skey1, symmetric_key *skey2)
1516
{
@@ -63,6 +64,7 @@ static int _xts_test_accel_xts_decrypt(const unsigned char *ct, unsigned char *p
6364

6465
return ret;
6566
}
67+
#endif
6668

6769
/**
6870
Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects

0 commit comments

Comments
 (0)