Lines Matching refs:pk
600 ECC_public_key pk;
613 pk.E = curve_copy (sk->E);
614 point_init (&pk.Q);
615 point_set (&pk.Q, &sk->Q);
622 if (verify (test, &pk, r, s))
630 point_free (&pk.Q);
631 curve_free (&pk.E);
1322 ECC_public_key pk;
1332 pk.E.p = pkey[0];
1333 pk.E.a = pkey[1];
1334 pk.E.b = pkey[2];
1335 point_init (&pk.E.G);
1336 err = os2ec (&pk.E.G, pkey[3]);
1339 point_free (&pk.E.G);
1342 pk.E.n = pkey[4];
1343 point_init (&pk.Q);
1344 err = os2ec (&pk.Q, pkey[5]);
1347 point_free (&pk.E.G);
1348 point_free (&pk.Q);
1352 err = verify (hash, &pk, data[0], data[1]);
1354 point_free (&pk.E.G);
1355 point_free (&pk.Q);
1392 ECC_public_key pk;
1404 pk.E.p = pkey[0];
1405 pk.E.a = pkey[1];
1406 pk.E.b = pkey[2];
1407 point_init (&pk.E.G);
1408 err = os2ec (&pk.E.G, pkey[3]);
1411 point_free (&pk.E.G);
1414 pk.E.n = pkey[4];
1415 point_init (&pk.Q);
1416 err = os2ec (&pk.Q, pkey[5]);
1419 point_free (&pk.E.G);
1420 point_free (&pk.Q);
1424 ctx = _gcry_mpi_ec_init (pk.E.p, pk.E.a);
1437 _gcry_mpi_ec_mul_point (&R, k, &pk.Q, ctx);
1442 result[0] = ec2os (x, y, pk.E.p);
1445 _gcry_mpi_ec_mul_point (&R, k, &pk.E.G, ctx);
1450 result[1] = ec2os (x, y, pk.E.p);
1459 point_free (&pk.E.G);
1460 point_free (&pk.Q);