Lines Matching refs:TEST_EQUAL
26 TEST_EQUAL( input->len, expected_output->len );
28 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode,
30 TEST_EQUAL( 0, mbedtls_gcm_update_ad( ctx, add->x, n1_add ) );
31 TEST_EQUAL( 0, mbedtls_gcm_update_ad( ctx, add->x + n1_add, n2_add ) );
38 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, n1, output, n1, &olen ) );
39 TEST_EQUAL( n1, olen );
46 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x + n1, n2, output, n2, &olen ) );
47 TEST_EQUAL( n2, olen );
53 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
54 TEST_EQUAL( 0, olen );
78 TEST_EQUAL( input->len, expected_output->len );
80 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode,
85 TEST_EQUAL( 0, mbedtls_gcm_update_ad( ctx, NULL, 0 ) );
93 TEST_EQUAL( 0, mbedtls_gcm_update( ctx, input->x, input->len, output, input->len, &olen ) );
94 TEST_EQUAL( input->len, olen );
100 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
101 TEST_EQUAL( 0, olen );
119 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode, iv->x, iv->len ) );
120 TEST_EQUAL( 0, mbedtls_gcm_update_ad( ctx, add->x, add->len ) );
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 );
147 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode,
150 TEST_EQUAL( 0, mbedtls_gcm_finish( ctx, NULL, 0, &olen, output, tag->len ) );
151 TEST_EQUAL( 0, olen );
425 TEST_EQUAL(
445 TEST_EQUAL( mbedtls_gcm_setkey( &ctx, cipher_id, key_str->x, key_str->len * 8 ), 0 );
446 TEST_EQUAL( 0, mbedtls_gcm_starts( &ctx, mode, iv->x, iv->len ) );
449 …TEST_EQUAL( MBEDTLS_ERR_GCM_BUFFER_TOO_SMALL, mbedtls_gcm_update( &ctx, input->x, input->len, outp…