Lines Matching refs:Q
14 mbedtls_ecp_point Q;
20 mbedtls_ecp_point_init(&Q);
26 TEST_ASSERT(mbedtls_ecp_gen_keypair(&grp, &d, &Q,
33 TEST_ASSERT(mbedtls_ecdsa_verify(&grp, buf, sizeof(buf), &Q, &r, &s) == 0);
37 mbedtls_ecp_point_free(&Q);
46 mbedtls_ecp_point Q;
52 mbedtls_ecp_point_init(&Q);
61 TEST_ASSERT(mbedtls_ecp_gen_keypair(&grp, &d, &Q,
68 TEST_ASSERT(mbedtls_ecdsa_verify(&grp, buf, sizeof(buf), &Q, &r, &s) == 0);
72 mbedtls_ecp_point_free(&Q);
84 mbedtls_ecp_point Q;
89 mbedtls_ecp_point_init(&Q);
95 TEST_ASSERT(mbedtls_ecp_point_read_string(&Q, 16, xQ_str, yQ_str) == 0);
126 &Q, &r_check, &s_check), 0);
128 /* Invalid signature: wrong public key (G instead of Q) */
136 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
138 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
140 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
146 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
148 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
150 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
154 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
156 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
158 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
165 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
167 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
169 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
176 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
178 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
180 TEST_EQUAL(mbedtls_ecdsa_verify(&grp, hash->x, hash->len, &Q,
186 mbedtls_ecp_point_free(&Q);
375 TEST_ASSERT(mbedtls_ecp_point_read_binary(&ctx.grp, &ctx.Q,
509 TEST_EQUAL(mbedtls_test_read_mpi(&ctx.Q.X, x), 0);
510 TEST_EQUAL(mbedtls_test_read_mpi(&ctx.Q.Y, y), 0);
511 TEST_EQUAL(mbedtls_mpi_lset(&ctx.Q.Z, 1), 0);
518 TEST_EQUAL(mbedtls_ecp_check_pubkey(&ctx.grp, &ctx.Q),
522 int result = mbedtls_ecdsa_verify(&ctx.grp, content->x, content->len, &ctx.Q, &sig_r, &sig_s);