blob: 4949feb88081b22e44e691f0f1f5f5b2cec58afc [file] [log] [blame]
Paul Bakker33b43f12013-08-20 11:48:36 +02001/* BEGIN_HEADER */
Manuel Pégourié-Gonnard7f809972015-03-09 17:05:11 +00002#include "mbedtls/camellia.h"
Paul Bakker33b43f12013-08-20 11:48:36 +02003/* END_HEADER */
Paul Bakkere896fea2009-07-06 06:40:23 +00004
Paul Bakker33b43f12013-08-20 11:48:36 +02005/* BEGIN_DEPENDENCIES
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +02006 * depends_on:MBEDTLS_CAMELLIA_C
Paul Bakker33b43f12013-08-20 11:48:36 +02007 * END_DEPENDENCIES
8 */
Paul Bakker5690efc2011-05-26 13:16:06 +00009
Paul Bakker33b43f12013-08-20 11:48:36 +020010/* BEGIN_CASE */
Andrzej Kurekc470b6b2019-01-31 08:20:20 -050011void camellia_valid_param( )
12{
13 TEST_VALID_PARAM( mbedtls_camellia_free( NULL ) );
14}
15/* END_CASE */
16
17/* BEGIN_CASE depends_on:MBEDTLS_CHECK_PARAMS:!MBEDTLS_PARAM_FAILED_ALT */
18void camellia_invalid_param( )
19{
20 mbedtls_camellia_context ctx;
21 unsigned char buf[16] = { 0 };
22 const size_t valid_keybits = 128;
23 const int invalid_mode = 42;
24 const int valid_mode = MBEDTLS_CAMELLIA_ENCRYPT;
25 size_t off;
26 ((void) off);
27
28 TEST_INVALID_PARAM( mbedtls_camellia_init( NULL ) );
29
30 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
31 mbedtls_camellia_setkey_enc( NULL,
32 buf,
33 valid_keybits ) );
34 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
35 mbedtls_camellia_setkey_enc( &ctx,
36 NULL,
37 valid_keybits ) );
38
39 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
40 mbedtls_camellia_setkey_dec( NULL,
41 buf,
42 valid_keybits ) );
43 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
44 mbedtls_camellia_setkey_dec( &ctx,
45 NULL,
46 valid_keybits ) );
47
48 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
49 mbedtls_camellia_crypt_ecb( NULL,
50 valid_mode,
51 buf, buf ) );
52 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
53 mbedtls_camellia_crypt_ecb( &ctx,
54 invalid_mode,
55 buf, buf ) );
56 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
57 mbedtls_camellia_crypt_ecb( &ctx,
58 valid_mode,
59 NULL, buf ) );
60 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
61 mbedtls_camellia_crypt_ecb( &ctx,
62 valid_mode,
63 buf, NULL ) );
64
65#if defined(MBEDTLS_CIPHER_MODE_CBC)
66 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
67 mbedtls_camellia_crypt_cbc( NULL,
68 valid_mode,
69 sizeof( buf ),
70 buf, buf, buf ) );
71 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
72 mbedtls_camellia_crypt_cbc( &ctx,
73 invalid_mode,
74 sizeof( buf ),
75 buf, buf, buf ) );
76 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
77 mbedtls_camellia_crypt_cbc( &ctx,
78 valid_mode,
79 sizeof( buf ),
80 NULL, buf, buf ) );
81 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
82 mbedtls_camellia_crypt_cbc( &ctx,
83 valid_mode,
84 sizeof( buf ),
85 buf, NULL, buf ) );
86 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
87 mbedtls_camellia_crypt_cbc( &ctx,
88 valid_mode,
89 sizeof( buf ),
90 buf, buf, NULL ) );
91#endif /* MBEDTLS_CIPHER_MODE_CBC */
92
93#if defined(MBEDTLS_CIPHER_MODE_CFB)
94 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
95 mbedtls_camellia_crypt_cfb128( NULL,
96 valid_mode,
97 sizeof( buf ),
98 &off, buf,
99 buf, buf ) );
100 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
101 mbedtls_camellia_crypt_cfb128( &ctx,
102 invalid_mode,
103 sizeof( buf ),
104 &off, buf,
105 buf, buf ) );
106 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
107 mbedtls_camellia_crypt_cfb128( &ctx,
108 valid_mode,
109 sizeof( buf ),
110 NULL, buf,
111 buf, buf ) );
112 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
113 mbedtls_camellia_crypt_cfb128( &ctx,
114 valid_mode,
115 sizeof( buf ),
116 &off, NULL,
117 buf, buf ) );
118 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
119 mbedtls_camellia_crypt_cfb128( &ctx,
120 valid_mode,
121 sizeof( buf ),
122 &off, buf,
123 NULL, buf ) );
124 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
125 mbedtls_camellia_crypt_cfb128( &ctx,
126 valid_mode,
127 sizeof( buf ),
128 &off, buf,
129 buf, NULL ) );
130#endif /* MBEDTLS_CIPHER_MODE_CFB */
131
132#if defined(MBEDTLS_CIPHER_MODE_CTR)
133 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
134 mbedtls_camellia_crypt_ctr( NULL,
135 sizeof( buf ),
136 &off,
137 buf, buf,
138 buf, buf ) );
139 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
140 mbedtls_camellia_crypt_ctr( &ctx,
141 sizeof( buf ),
142 NULL,
143 buf, buf,
144 buf, buf ) );
145 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
146 mbedtls_camellia_crypt_ctr( &ctx,
147 sizeof( buf ),
148 &off,
149 NULL, buf,
150 buf, buf ) );
151 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
152 mbedtls_camellia_crypt_ctr( &ctx,
153 sizeof( buf ),
154 &off,
155 buf, NULL,
156 buf, buf ) );
157 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
158 mbedtls_camellia_crypt_ctr( &ctx,
159 sizeof( buf ),
160 &off,
161 buf, buf,
162 NULL, buf ) );
163 TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
164 mbedtls_camellia_crypt_ctr( &ctx,
165 sizeof( buf ),
166 &off,
167 buf, buf,
168 buf, NULL ) );
169#endif /* MBEDTLS_CIPHER_MODE_CTR */
170
171exit:
172 return;
173}
174/* END_CASE */
175
176/* BEGIN_CASE */
Azim Khan5fcca462018-06-29 11:05:32 +0100177void camellia_encrypt_ecb( data_t * key_str, data_t * src_str,
178 data_t * hex_dst_string, int setkey_result )
Paul Bakkere896fea2009-07-06 06:40:23 +0000179{
Paul Bakkere896fea2009-07-06 06:40:23 +0000180 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200181 mbedtls_camellia_context ctx;
Paul Bakkere896fea2009-07-06 06:40:23 +0000182
Paul Bakkere896fea2009-07-06 06:40:23 +0000183 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200184 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000185
Paul Bakkere896fea2009-07-06 06:40:23 +0000186
Azim Khand30ca132017-06-09 04:32:58 +0100187 TEST_ASSERT( mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 ) == setkey_result );
Paul Bakker33b43f12013-08-20 11:48:36 +0200188 if( setkey_result == 0 )
Paul Bakker2b222c82009-07-27 21:03:45 +0000189 {
Azim Khand30ca132017-06-09 04:32:58 +0100190 TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->x, output ) == 0 );
Paul Bakkere896fea2009-07-06 06:40:23 +0000191
Ronald Cron2dbba992020-06-10 11:42:32 +0200192 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
193 16, hex_dst_string->len ) == 0 );
Paul Bakker2b222c82009-07-27 21:03:45 +0000194 }
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200195
Paul Bakkerbd51b262014-07-10 15:26:12 +0200196exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200197 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000198}
Paul Bakker33b43f12013-08-20 11:48:36 +0200199/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000200
Paul Bakker33b43f12013-08-20 11:48:36 +0200201/* BEGIN_CASE */
Azim Khan5fcca462018-06-29 11:05:32 +0100202void camellia_decrypt_ecb( data_t * key_str, data_t * src_str,
203 data_t * hex_dst_string, int setkey_result )
Paul Bakkere896fea2009-07-06 06:40:23 +0000204{
Paul Bakkere896fea2009-07-06 06:40:23 +0000205 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200206 mbedtls_camellia_context ctx;
Paul Bakkere896fea2009-07-06 06:40:23 +0000207
Paul Bakkere896fea2009-07-06 06:40:23 +0000208 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200209 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000210
Paul Bakkere896fea2009-07-06 06:40:23 +0000211
Azim Khand30ca132017-06-09 04:32:58 +0100212 TEST_ASSERT( mbedtls_camellia_setkey_dec( &ctx, key_str->x, key_str->len * 8 ) == setkey_result );
Paul Bakker33b43f12013-08-20 11:48:36 +0200213 if( setkey_result == 0 )
Paul Bakker2b222c82009-07-27 21:03:45 +0000214 {
Azim Khand30ca132017-06-09 04:32:58 +0100215 TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str->x, output ) == 0 );
Paul Bakkere896fea2009-07-06 06:40:23 +0000216
Ronald Cron2dbba992020-06-10 11:42:32 +0200217 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
218 16, hex_dst_string->len ) == 0 );
Paul Bakker2b222c82009-07-27 21:03:45 +0000219 }
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200220
Paul Bakkerbd51b262014-07-10 15:26:12 +0200221exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200222 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000223}
Paul Bakker33b43f12013-08-20 11:48:36 +0200224/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000225
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200226/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
Azim Khan5fcca462018-06-29 11:05:32 +0100227void camellia_encrypt_cbc( data_t * key_str, data_t * iv_str,
228 data_t * src_str, data_t * hex_dst_string,
Azim Khand30ca132017-06-09 04:32:58 +0100229 int cbc_result )
Paul Bakkere896fea2009-07-06 06:40:23 +0000230{
Paul Bakkere896fea2009-07-06 06:40:23 +0000231 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200232 mbedtls_camellia_context ctx;
Paul Bakkere896fea2009-07-06 06:40:23 +0000233
Paul Bakkere896fea2009-07-06 06:40:23 +0000234 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200235 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000236
Paul Bakkere896fea2009-07-06 06:40:23 +0000237
Azim Khand30ca132017-06-09 04:32:58 +0100238 mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 );
239 TEST_ASSERT( mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->len, iv_str->x, src_str->x, output) == cbc_result );
Paul Bakker33b43f12013-08-20 11:48:36 +0200240 if( cbc_result == 0 )
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000241 {
Paul Bakkere896fea2009-07-06 06:40:23 +0000242
Ronald Cron2dbba992020-06-10 11:42:32 +0200243 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
244 src_str->len,
245 hex_dst_string->len ) == 0 );
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000246 }
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200247
Paul Bakkerbd51b262014-07-10 15:26:12 +0200248exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200249 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000250}
Paul Bakker33b43f12013-08-20 11:48:36 +0200251/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000252
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200253/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
Azim Khan5fcca462018-06-29 11:05:32 +0100254void camellia_decrypt_cbc( data_t * key_str, data_t * iv_str,
255 data_t * src_str, data_t * hex_dst_string,
Azim Khand30ca132017-06-09 04:32:58 +0100256 int cbc_result )
Paul Bakkere896fea2009-07-06 06:40:23 +0000257{
Paul Bakkere896fea2009-07-06 06:40:23 +0000258 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200259 mbedtls_camellia_context ctx;
Paul Bakkere896fea2009-07-06 06:40:23 +0000260
Paul Bakkere896fea2009-07-06 06:40:23 +0000261 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200262 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000263
Paul Bakkere896fea2009-07-06 06:40:23 +0000264
Azim Khand30ca132017-06-09 04:32:58 +0100265 mbedtls_camellia_setkey_dec( &ctx, key_str->x, key_str->len * 8 );
266 TEST_ASSERT( mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str->len, iv_str->x, src_str->x, output ) == cbc_result );
Paul Bakker33b43f12013-08-20 11:48:36 +0200267 if( cbc_result == 0 )
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000268 {
Paul Bakkere896fea2009-07-06 06:40:23 +0000269
Ronald Cron2dbba992020-06-10 11:42:32 +0200270 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
271 src_str->len,
272 hex_dst_string->len ) == 0 );
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000273 }
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200274
Paul Bakkerbd51b262014-07-10 15:26:12 +0200275exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200276 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000277}
Paul Bakker33b43f12013-08-20 11:48:36 +0200278/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000279
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200280/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CFB */
Azim Khan5fcca462018-06-29 11:05:32 +0100281void camellia_encrypt_cfb128( data_t * key_str, data_t * iv_str,
282 data_t * src_str,
283 data_t * hex_dst_string )
Paul Bakkere896fea2009-07-06 06:40:23 +0000284{
Paul Bakkere896fea2009-07-06 06:40:23 +0000285 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200286 mbedtls_camellia_context ctx;
Paul Bakker1ef71df2011-06-09 14:14:58 +0000287 size_t iv_offset = 0;
Paul Bakkere896fea2009-07-06 06:40:23 +0000288
Paul Bakkere896fea2009-07-06 06:40:23 +0000289 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200290 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000291
Paul Bakkere896fea2009-07-06 06:40:23 +0000292
Azim Khand30ca132017-06-09 04:32:58 +0100293 mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 );
294 TEST_ASSERT( mbedtls_camellia_crypt_cfb128( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, 16, &iv_offset, iv_str->x, src_str->x, output ) == 0 );
Paul Bakkere896fea2009-07-06 06:40:23 +0000295
Ronald Cron2dbba992020-06-10 11:42:32 +0200296 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
297 16, hex_dst_string->len ) == 0 );
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200298
Paul Bakkerbd51b262014-07-10 15:26:12 +0200299exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200300 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000301}
Paul Bakker33b43f12013-08-20 11:48:36 +0200302/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000303
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200304/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CFB */
Azim Khan5fcca462018-06-29 11:05:32 +0100305void camellia_decrypt_cfb128( data_t * key_str, data_t * iv_str,
306 data_t * src_str,
307 data_t * hex_dst_string )
Paul Bakkere896fea2009-07-06 06:40:23 +0000308{
Paul Bakkere896fea2009-07-06 06:40:23 +0000309 unsigned char output[100];
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200310 mbedtls_camellia_context ctx;
Paul Bakker1ef71df2011-06-09 14:14:58 +0000311 size_t iv_offset = 0;
Paul Bakkere896fea2009-07-06 06:40:23 +0000312
Paul Bakkere896fea2009-07-06 06:40:23 +0000313 memset(output, 0x00, 100);
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200314 mbedtls_camellia_init( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000315
Paul Bakkere896fea2009-07-06 06:40:23 +0000316
Azim Khand30ca132017-06-09 04:32:58 +0100317 mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 );
318 TEST_ASSERT( mbedtls_camellia_crypt_cfb128( &ctx, MBEDTLS_CAMELLIA_DECRYPT, 16, &iv_offset, iv_str->x, src_str->x, output ) == 0 );
Paul Bakkere896fea2009-07-06 06:40:23 +0000319
Ronald Cron2dbba992020-06-10 11:42:32 +0200320 TEST_ASSERT( mbedtls_test_hexcmp( output, hex_dst_string->x,
321 16, hex_dst_string->len ) == 0 );
Paul Bakker8cfd9d82014-06-18 11:16:11 +0200322
Paul Bakkerbd51b262014-07-10 15:26:12 +0200323exit:
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200324 mbedtls_camellia_free( &ctx );
Paul Bakkere896fea2009-07-06 06:40:23 +0000325}
Paul Bakker33b43f12013-08-20 11:48:36 +0200326/* END_CASE */
Paul Bakkere896fea2009-07-06 06:40:23 +0000327
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200328/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
Azim Khanf1aaec92017-05-30 14:23:15 +0100329void camellia_selftest( )
Paul Bakkere896fea2009-07-06 06:40:23 +0000330{
Andres AG93012e82016-09-09 09:10:28 +0100331 TEST_ASSERT( mbedtls_camellia_self_test( 1 ) == 0 );
Paul Bakkere896fea2009-07-06 06:40:23 +0000332}
Paul Bakker33b43f12013-08-20 11:48:36 +0200333/* END_CASE */