Lines Matching refs:length
346 size_t length = length_val, outlen, total_len, i, block_size, iv_len;
405 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
406 * For CCM*-NO-TAG, IV length must be exactly 13 bytes long. */
424 /* encode length number of bytes from inbuf */
425 TEST_ASSERT( 0 == mbedtls_cipher_update( &ctx_enc, inbuf, length, encbuf, &outlen ) );
428 TEST_ASSERT( total_len == length ||
430 total_len < length &&
431 total_len + block_size > length ) );
440 TEST_ASSERT( total_len == length ||
442 total_len > length &&
443 total_len <= length + block_size ) );
449 TEST_ASSERT( total_len == length ||
451 total_len < length &&
452 total_len + block_size >= length ) );
462 TEST_ASSERT( total_len == length );
463 TEST_ASSERT( 0 == memcmp(inbuf, decbuf, length) );
479 size_t length = length_val;
517 /* encode length number of bytes from inbuf */
518 TEST_ASSERT( 0 == mbedtls_cipher_update( &ctx, inbuf, length, encbuf, &outlen ) );
604 size_t length = first_length + second_length;
652 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
653 * For CCM*-NO-TAG, IV length must be exactly 13 bytes long. */
671 /* encode length number of bytes from inbuf */
678 TEST_ASSERT( totaloutlen == length ||
680 totaloutlen < length &&
681 totaloutlen + block_size > length ) );
685 TEST_ASSERT( totaloutlen == length ||
687 totaloutlen > length &&
688 totaloutlen <= length + block_size ) );
699 TEST_ASSERT( totaloutlen == length ||
701 totaloutlen < length &&
702 totaloutlen + block_size >= length ) );
707 TEST_ASSERT( totaloutlen == length );
709 TEST_ASSERT( 0 == memcmp(inbuf, decbuf, length) );
800 /* Null pointers are documented as valid for inputs of length 0.
848 * Compute length of output buffer according to the documentation