Lines Matching refs:olen
21 size_t olen;
37 olen = 0xdeadbeef;
38 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, n1, output, n1, &olen ) );
39 TEST_EQUAL( n1, olen );
40 ASSERT_COMPARE( output, olen, expected_output->x, n1 );
45 olen = 0xdeadbeef;
46 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x + n1, n2, output, n2, &olen ) );
47 TEST_EQUAL( n2, olen );
48 ASSERT_COMPARE( output, olen, expected_output->x + n1, n2 );
53 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
54 TEST_EQUAL( 0, olen );
75 size_t olen;
92 olen = 0xdeadbeef;
93 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, input->len, output, input->len, &olen ) );
94 TEST_EQUAL( input->len, olen );
95 ASSERT_COMPARE( output, olen, expected_output->x, input->len );
100 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
101 TEST_EQUAL( 0, olen );
115 size_t olen;
124 olen = 0xdeadbeef;
125 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, NULL, 0, NULL, 0, &olen ) );
126 TEST_EQUAL( 0, olen );
130 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen,
132 TEST_EQUAL( 0, olen );
145 size_t olen = 0;
150 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
151 TEST_EQUAL( 0, olen );
441 size_t olen = 0;
449 …CM_BUFFER_TOO_SMALL, mbedtls_gcm_update( &ctx, input->x, input->len, output, output_len, &olen ) );