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 TEST_MEMORY_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 TEST_MEMORY_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;
91 olen = 0xdeadbeef;
92 TEST_EQUAL(0, mbedtls_gcm_update(ctx, input->x, input->len, output, input->len, &olen));
93 TEST_EQUAL(input->len, olen);
94 TEST_MEMORY_COMPARE(output, olen, expected_output->x, input->len);
99 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen, output, tag->len));
100 TEST_EQUAL(0, olen);
114 size_t olen;
122 olen = 0xdeadbeef;
123 TEST_EQUAL(0, mbedtls_gcm_update(ctx, NULL, 0, NULL, 0, &olen));
124 TEST_EQUAL(0, olen);
128 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen,
130 TEST_EQUAL(0, olen);
143 size_t olen = 0;
148 TEST_EQUAL(0, mbedtls_gcm_finish(ctx, NULL, 0, &olen, output, tag->len));
149 TEST_EQUAL(0, olen);
477 size_t olen = 0;
487 mbedtls_gcm_update(&ctx, input->x, input->len, output, output_len, &olen));