Lines Matching refs:pk
588 ECC_public_key pk;
601 pk.E = curve_copy (sk->E);
602 point_init (&pk.Q);
603 point_set (&pk.Q, &sk->Q);
610 if (verify (test, &pk, r, s))
618 point_free (&pk.Q);
619 curve_free (&pk.E);
1162 ECC_public_key pk;
1172 pk.E.p = pkey[0];
1173 pk.E.a = pkey[1];
1174 pk.E.b = pkey[2];
1175 point_init (&pk.E.G);
1176 err = os2ec (&pk.E.G, pkey[3]);
1179 point_free (&pk.E.G);
1182 pk.E.n = pkey[4];
1183 point_init (&pk.Q);
1184 err = os2ec (&pk.Q, pkey[5]);
1187 point_free (&pk.E.G);
1188 point_free (&pk.Q);
1192 err = verify (hash, &pk, data[0], data[1]);
1194 point_free (&pk.E.G);
1195 point_free (&pk.Q);