- Fixed cipher interface for encrypt/decrypt functions
diff --git a/tests/suites/test_suite_xtea.function b/tests/suites/test_suite_xtea.function
index e75d0a7..8b133bd 100644
--- a/tests/suites/test_suite_xtea.function
+++ b/tests/suites/test_suite_xtea.function
@@ -20,7 +20,7 @@
unhexify( src_str, {hex_src_string} );
xtea_setup( &ctx, key_str );
- xtea_crypt_ecb( &ctx, XTEA_ENCRYPT, src_str, output );
+ TEST_ASSERT( xtea_crypt_ecb( &ctx, XTEA_ENCRYPT, src_str, output ) == 0 );
hexify( dst_str, output, 8 );
TEST_ASSERT( strcmp( (char *) dst_str, {hex_dst_string} ) == 0 );
@@ -45,7 +45,7 @@
unhexify( src_str, {hex_src_string} );
xtea_setup( &ctx, key_str );
- xtea_crypt_ecb( &ctx, XTEA_DECRYPT, src_str, output );
+ TEST_ASSERT( xtea_crypt_ecb( &ctx, XTEA_DECRYPT, src_str, output ) == 0 );
hexify( dst_str, output, 8 );
TEST_ASSERT( strcmp( (char *) dst_str, {hex_dst_string} ) == 0 );