Lines Matching refs:group

27  * with the group parameters (which would normally only happen
28 * with a bad custom group).
35 if (eckey->group->meth->ecdsa_sign_setup == NULL) {
40 return eckey->group->meth->ecdsa_sign_setup(eckey, ctx_in, kinvp, rp);
47 if (eckey->group->meth->ecdsa_sign_sig == NULL) {
52 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len,
59 if (eckey->group->meth->ecdsa_verify_sig == NULL) {
64 return eckey->group->meth->ecdsa_verify_sig(dgst, dgst_len, sig, eckey);
96 const EC_GROUP *group;
101 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) {
129 if ((tmp_point = EC_POINT_new(group)) == NULL) {
133 order = EC_GROUP_get0_order(group);
162 if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx)) {
167 if (!EC_POINT_get_affine_coordinates(group, tmp_point, X, NULL, ctx)) {
179 if (!ossl_ec_group_do_inverse_ord(group, k, k, ctx)) {
218 const EC_GROUP *group;
222 group = EC_KEY_get0_group(eckey);
225 if (group == NULL) {
258 order = EC_GROUP_get0_order(group);
296 if (!bn_to_mont_fixed_top(s, ret->r, group->mont_data, ctx)
297 || !bn_mul_mont_fixed_top(s, s, priv_key, group->mont_data, ctx)) {
309 if (!bn_to_mont_fixed_top(s, s, group->mont_data, ctx)
310 || !BN_mod_mul_montgomery(s, s, ckinv, group->mont_data, ctx)) {
324 /* Avoid infinite loops cause by invalid group parameters */
386 const EC_GROUP *group;
390 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL ||
416 order = EC_GROUP_get0_order(group);
430 if (!ossl_ec_group_do_inverse_ord(group, u2, sig->s, ctx)) {
461 if ((point = EC_POINT_new(group)) == NULL) {
465 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) {
470 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL, ctx)) {