Home | History | Annotate | Download | only in ec

Lines Matching refs:err

70 #include <openssl/err.h>
203 if (!BN_copy(&group->field, p)) goto err;
208 goto err;
212 if (!BN_GF2m_mod_arr(&group->a, a, group->poly)) goto err;
213 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err;
217 if (!BN_GF2m_mod_arr(&group->b, b, group->poly)) goto err;
218 if(bn_wexpand(&group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err;
222 err:
241 if (!BN_copy(a, &group->a)) goto err;
246 if (!BN_copy(b, &group->b)) goto err;
251 err:
278 goto err;
283 if (b == NULL) goto err;
285 if (!BN_GF2m_mod_arr(b, &group->b, group->poly)) goto err;
290 if (BN_is_zero(b)) goto err;
294 err:
368 if (!BN_copy(&point->X, x)) goto err;
370 if (!BN_copy(&point->Y, y)) goto err;
372 if (!BN_copy(&point->Z, BN_value_one())) goto err;
377 err:
403 if (!BN_copy(x, &point->X)) goto err;
408 if (!BN_copy(y, &point->Y)) goto err;
413 err:
454 if (t == NULL) goto err;
458 if (!BN_copy(x0, &a->X)) goto err;
459 if (!BN_copy(y0, &a->Y)) goto err;
463 if (!EC_POINT_get_affine_coordinates_GF2m(group, a, x0, y0, ctx)) goto err;
467 if (!BN_copy(x1, &b->X)) goto err;
468 if (!BN_copy(y1, &b->Y)) goto err;
472 if (!EC_POINT_get_affine_coordinates_GF2m(group, b, x1, y1, ctx)) goto err;
478 if (!BN_GF2m_add(t, x0, x1)) goto err;
479 if (!BN_GF2m_add(s, y0, y1)) goto err;
480 if (!group->meth->field_div(group, s, s, t, ctx)) goto err;
481 if (!group->meth->field_sqr(group, x2, s, ctx)) goto err;
482 if (!BN_GF2m_add(x2, x2, &group->a)) goto err;
483 if (!BN_GF2m_add(x2, x2, s)) goto err;
484 if (!BN_GF2m_add(x2, x2, t)) goto err;
490 if (!EC_POINT_set_to_infinity(group, r)) goto err;
492 goto err;
494 if (!group->meth->field_div(group, s, y1, x1, ctx)) goto err;
495 if (!BN_GF2m_add(s, s, x1)) goto err;
497 if (!group->meth->field_sqr(group, x2, s, ctx)) goto err;
498 if (!BN_GF2m_add(x2, x2, s)) goto err;
499 if (!BN_GF2m_add(x2, x2, &group->a)) goto err;
502 if (!BN_GF2m_add(y2, x1, x2)) goto err;
503 if (!group->meth->field_mul(group, y2, y2, s, ctx)) goto err;
504 if (!BN_GF2m_add(y2, y2, x2)) goto err;
505 if (!BN_GF2m_add(y2, y2, y1)) goto err;
507 if (!EC_POINT_set_affine_coordinates_GF2m(group, r, x2, y2, ctx)) goto err;
511 err:
577 if (lh == NULL) goto err;
584 if (!BN_GF2m_add(lh, &point->X, &group->a)) goto err;
585 if (!field_mul(group, lh, lh, &point->X, ctx)) goto err;
586 if (!BN_GF2m_add(lh, lh, &point->Y)) goto err;
587 if (!field_mul(group, lh, lh, &point->X, ctx)) goto err;
588 if (!BN_GF2m_add(lh, lh, &group->b)) goto err;
589 if (!field_sqr(group, y2, &point->Y, ctx)) goto err;
590 if (!BN_GF2m_add(lh, lh, y2)) goto err;
592 err:
636 if (bY == NULL) goto err;
638 if (!EC_POINT_get_affine_coordinates_GF2m(group, a, aX, aY, ctx)) goto err;
639 if (!EC_POINT_get_affine_coordinates_GF2m(group, b, bX, bY, ctx)) goto err;
642 err:
669 if (y == NULL) goto err;
671 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
672 if (!BN_copy(&point->X, x)) goto err;
673 if (!BN_copy(&point->Y, y)) goto err;
674 if (!BN_one(&point->Z)) goto err;
678 err: