Lines Matching refs:err
65 #include <openssl/err.h>
94 if (y == NULL) goto err;
102 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err;
106 if (!group->meth->field_sqr(group, tmp2, x_, ctx)) goto err;
107 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx)) goto err;
111 if (!BN_mod_sqr(tmp2, x_, &group->field, ctx)) goto err;
112 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) goto err;
118 if (!BN_mod_lshift1_quick(tmp2, x, &group->field)) goto err;
119 if (!BN_mod_add_quick(tmp2, tmp2, x, &group->field)) goto err;
120 if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, &group->field)) goto err;
126 if (!group->meth->field_decode(group, tmp2, &group->a, ctx)) goto err;
127 if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) goto err;
132 if (!group->meth->field_mul(group, tmp2, &group->a, x, ctx)) goto err;
135 if (!BN_mod_add_quick(tmp1, tmp1, tmp2, &group->field)) goto err;
141 if (!group->meth->field_decode(group, tmp2, &group->b, ctx)) goto err;
142 if (!BN_mod_add_quick(tmp1, tmp1, tmp2, &group->field)) goto err;
146 if (!BN_mod_add_quick(tmp1, tmp1, &group->b, &group->field)) goto err;
151 unsigned long err = ERR_peek_last_error();
153 if (ERR_GET_LIB(err) == ERR_LIB_BN && ERR_GET_REASON(err) == BN_R_NOT_A_SQUARE)
160 goto err;
170 if (kron == -2) goto err;
177 goto err;
179 if (!BN_usub(y, &group->field, y)) goto err;
184 goto err;
187 if (!EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx)) goto err;
191 err:
213 goto err;
242 goto err;
256 if (y == NULL) goto err;
258 if (!EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx)) goto err;
271 goto err;
283 goto err;
292 goto err;
306 goto err;
316 err:
386 if (y == NULL) goto err;
388 if (!BN_bin2bn(buf + 1, field_len, x)) goto err;
392 goto err;
397 if (!EC_POINT_set_compressed_coordinates_GFp(group, point, x, y_bit, ctx)) goto err;
401 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) goto err;
405 goto err;
412 goto err;
416 if (!EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx)) goto err;
422 goto err;
427 err: