Lines Matching refs:length
136 size_t length = length_val, outlen, total_len, i, block_size;
206 /* encode length number of bytes from inbuf */
207 TEST_ASSERT( 0 == mbedtls_cipher_update( &ctx_enc, inbuf, length, encbuf, &outlen ) );
210 TEST_ASSERT( total_len == length ||
212 total_len < length &&
213 total_len + block_size > length ) );
222 TEST_ASSERT( total_len == length ||
224 total_len > length &&
225 total_len <= length + block_size ) );
231 TEST_ASSERT( total_len == length ||
233 total_len < length &&
234 total_len + block_size >= length ) );
244 TEST_ASSERT( total_len == length );
245 TEST_ASSERT( 0 == memcmp(inbuf, decbuf, length) );
261 size_t length = length_val;
299 /* encode length number of bytes from inbuf */
300 TEST_ASSERT( 0 == mbedtls_cipher_update( &ctx, inbuf, length, encbuf, &outlen ) );
365 size_t length = first_length + second_length;
415 /* encode length number of bytes from inbuf */
420 TEST_ASSERT( totaloutlen == length ||
422 totaloutlen < length &&
423 totaloutlen + block_size > length ) );
427 TEST_ASSERT( totaloutlen == length ||
429 totaloutlen > length &&
430 totaloutlen <= length + block_size ) );
436 TEST_ASSERT( totaloutlen == length ||
438 totaloutlen < length &&
439 totaloutlen + block_size >= length ) );
444 TEST_ASSERT( totaloutlen == length );
446 TEST_ASSERT( 0 == memcmp(inbuf, decbuf, length) );