Lines Matching refs:outlen
364 size_t length = length_val, outlen, total_len, i, block_size, iv_len;
449 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx_enc, inbuf, length, encbuf, &outlen));
450 total_len = outlen;
457 TEST_ASSERT(0 == mbedtls_cipher_finish(&ctx_enc, encbuf + outlen, &outlen));
458 total_len += outlen;
470 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx_dec, encbuf, total_len, decbuf, &outlen));
471 total_len = outlen;
478 TEST_ASSERT(0 == mbedtls_cipher_finish(&ctx_dec, decbuf + outlen, &outlen));
479 total_len += outlen;
513 size_t outlen = 0;
546 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx, inbuf, length, encbuf, &outlen));
547 TEST_ASSERT(ret == mbedtls_cipher_finish(&ctx, encbuf + outlen, &outlen));
571 size_t outlen = 0;
621 mbedtls_cipher_update(&ctx_dec, encbuf, 0, decbuf, &outlen));
622 TEST_ASSERT(0 == outlen);
636 &ctx_dec, decbuf + outlen, &outlen));
637 TEST_ASSERT(0 == outlen);
667 size_t outlen = 0;
728 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx_enc, inbuf, first_length, encbuf, &outlen));
729 TEST_ASSERT((size_t) first_encrypt_output_len == outlen);
730 totaloutlen = outlen;
734 &outlen));
735 TEST_ASSERT((size_t) second_encrypt_output_len == outlen);
736 totaloutlen += outlen;
742 TEST_ASSERT(0 == mbedtls_cipher_finish(&ctx_enc, encbuf + totaloutlen, &outlen));
743 totaloutlen += outlen;
751 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx_dec, encbuf, first_length, decbuf, &outlen));
752 TEST_ASSERT((size_t) first_decrypt_output_len == outlen);
753 totaloutlen = outlen;
757 &outlen));
758 TEST_ASSERT((size_t) second_decrypt_output_len == outlen);
759 totaloutlen += outlen;
766 TEST_ASSERT(0 == mbedtls_cipher_finish(&ctx_dec, decbuf + totaloutlen, &outlen));
767 totaloutlen += outlen;
787 size_t outlen, total_len;
821 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx, cipher->x, cipher->len, output, &outlen));
822 total_len += outlen;
823 TEST_ASSERT(finish_result == mbedtls_cipher_finish(&ctx, output + outlen,
824 &outlen));
825 total_len += outlen;
861 size_t outlen;
938 outlen = 0;
941 decrypt_buf, decrypt_buf_len - 1, &outlen, tag->len);
953 outlen = 0;
956 decrypt_buf, decrypt_buf_len, &outlen, tag->len);
963 TEST_MEMORY_COMPARE(decrypt_buf, outlen, clear->x, clear->len);
996 outlen = 0;
999 encrypt_buf, encrypt_buf_len - 1, &outlen, tag->len);
1010 outlen = 0;
1013 encrypt_buf, encrypt_buf_len, &outlen, tag->len);
1016 TEST_ASSERT(outlen == cipher->len + tag->len);
1047 size_t outlen;
1062 output, &outlen));
1063 TEST_ASSERT(outlen == mbedtls_cipher_get_block_size(&ctx));
1064 TEST_ASSERT(finish_result == mbedtls_cipher_finish(&ctx, output + outlen,
1065 &outlen));
1066 TEST_ASSERT(0 == outlen);
1086 size_t outlen;
1112 output, &outlen));
1113 TEST_ASSERT(result->len == outlen);
1116 TEST_ASSERT(0 == memcmp(output, result->x, outlen));
1217 size_t outlen = 0;
1240 sizeof(input), output, &outlen));
1244 sizeof(input), output, &outlen));