Lines Matching refs:output

5  * and check that the output matches the expected output.
18 uint8_t *output = NULL;
36 ASSERT_ALLOC( output, n1 );
38 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, n1, output, n1, &olen ) );
40 ASSERT_COMPARE( output, olen, expected_output->x, n1 );
41 mbedtls_free( output );
42 output = NULL;
44 ASSERT_ALLOC( output, n2 );
46 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x + n1, n2, output, n2, &olen ) );
48 ASSERT_COMPARE( output, olen, expected_output->x + n1, n2 );
49 mbedtls_free( output );
50 output = NULL;
52 ASSERT_ALLOC( output, tag->len );
53 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
55 ASSERT_COMPARE( output, tag->len, tag->x, tag->len );
56 mbedtls_free( output );
57 output = NULL;
61 mbedtls_free( output );
74 uint8_t *output = NULL;
91 ASSERT_ALLOC( output, input->len );
93 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, input->len, output, input->len, &olen ) );
95 ASSERT_COMPARE( output, olen, expected_output->x, input->len );
96 mbedtls_free( output );
97 output = NULL;
99 ASSERT_ALLOC( output, tag->len );
100 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
102 ASSERT_COMPARE( output, tag->len, tag->x, tag->len );
105 mbedtls_free( output );
144 uint8_t *output = NULL;
149 ASSERT_ALLOC( output, tag->len );
150 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
152 ASSERT_COMPARE( output, tag->len, tag->x, tag->len );
155 mbedtls_free( output );
171 unsigned char output[128];
178 memset( output, 0x00, sizeof( output ) );
183 … add_str->x, add_str->len, src_str->x, output, tag_len, tag_output ) == gcm_result );
197 unsigned char output[128];
206 memset(output, 0x00, 128);
213 …_str->len, iv_str->x, iv_str->len, add_str->x, add_str->len, src_str->x, output, tag_len, tag_outp…
215 ASSERT_COMPARE( output, src_str->len, dst->x, dst->len );
244 unsigned char output[128];
253 memset(output, 0x00, 128);
259 …->len, iv_str->x, iv_str->len, add_str->x, add_str->len, tag_str->x, tag_len, src_str->x, output );
268 ASSERT_COMPARE( output, src_str->len, pt_result->x, pt_result->len );
440 uint8_t *output = NULL;
448 ASSERT_ALLOC( output, output_len );
449 …RR_GCM_BUFFER_TOO_SMALL, mbedtls_gcm_update( &ctx, input->x, input->len, output, output_len, &olen…
452 mbedtls_free( output );