Lines Matching refs:length

368     size_t length = length_val, outlen, total_len, i, block_size, iv_len;
425 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
426 * For CCM*-NO-TAG, IV length must be exactly 13 bytes long. */
452 /* encode length number of bytes from inbuf */
453 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx_enc, inbuf, length, encbuf, &outlen));
456 TEST_ASSERT(total_len == length ||
458 total_len < length &&
459 total_len + block_size > length));
468 TEST_ASSERT(total_len == length ||
470 total_len > length &&
471 total_len <= length + block_size));
477 TEST_ASSERT(total_len == length ||
479 total_len < length &&
480 total_len + block_size >= length));
490 TEST_ASSERT(total_len == length);
491 TEST_ASSERT(0 == memcmp(inbuf, decbuf, length));
507 size_t length = length_val;
549 /* encode length number of bytes from inbuf */
550 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx, inbuf, length, encbuf, &outlen));
661 size_t length = first_length + second_length;
708 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
709 * For CCM*-NO-TAG, IV length must be exactly 13 bytes long. */
735 /* encode length number of bytes from inbuf */
745 TEST_ASSERT(totaloutlen == length ||
747 totaloutlen < length &&
748 totaloutlen + block_size > length));
752 TEST_ASSERT(totaloutlen == length ||
754 totaloutlen > length &&
755 totaloutlen <= length + block_size));
769 TEST_ASSERT(totaloutlen == length ||
771 totaloutlen < length &&
772 totaloutlen + block_size >= length));
777 TEST_ASSERT(totaloutlen == length);
779 TEST_ASSERT(0 == memcmp(inbuf, decbuf, length));
882 /* Null pointers are documented as valid for inputs of length 0.
935 * Compute length of output buffer according to the documentation