Lines Matching refs:output

5  * and check that the output matches the expected output.
18 uint8_t *output = NULL;
36 TEST_CALLOC(output, n1);
38 TEST_EQUAL(0, mbedtls_gcm_update(ctx, input->x, n1, output, n1, &olen));
40 TEST_MEMORY_COMPARE(output, olen, expected_output->x, n1);
41 mbedtls_free(output);
42 output = NULL;
44 TEST_CALLOC(output, n2);
46 TEST_EQUAL(0, mbedtls_gcm_update(ctx, input->x + n1, n2, output, n2, &olen));
48 TEST_MEMORY_COMPARE(output, olen, expected_output->x + n1, n2);
49 mbedtls_free(output);
50 output = NULL;
52 TEST_CALLOC(output, tag->len);
53 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen, output, tag->len));
55 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len);
56 mbedtls_free(output);
57 output = NULL;
61 mbedtls_free(output);
74 uint8_t *output = NULL;
90 TEST_CALLOC(output, input->len);
92 TEST_EQUAL(0, mbedtls_gcm_update(ctx, input->x, input->len, output, input->len, &olen));
94 TEST_MEMORY_COMPARE(output, olen, expected_output->x, input->len);
95 mbedtls_free(output);
96 output = NULL;
98 TEST_CALLOC(output, tag->len);
99 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen, output, tag->len));
101 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len);
104 mbedtls_free(output);
142 uint8_t *output = NULL;
147 TEST_CALLOC(output, tag->len);
148 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen, output, tag->len));
150 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len);
153 mbedtls_free(output);
184 unsigned char output[128];
192 memset(output, 0x00, sizeof(output));
197 add_str->x, add_str->len, src_str->x, output, tag_len,
213 unsigned char output[128];
223 memset(output, 0x00, 128);
231 output, tag_len, tag_output) == 0);
233 TEST_MEMORY_COMPARE(output, src_str->len, dst->x, dst->len);
262 unsigned char output[128];
272 memset(output, 0x00, 128);
286 output);
292 TEST_MEMORY_COMPARE(output, src_str->len, pt_result->x, pt_result->len);
476 uint8_t *output = NULL;
485 TEST_CALLOC(output, output_len);
487 mbedtls_gcm_update(&ctx, input->x, input->len, output, output_len, &olen));
490 mbedtls_free(output);