Lines Matching refs:err
70 #include <openssl/err.h>
115 if (z == NULL) goto err;
117 if (!BN_GF2m_mod_arr(x, x_, group->poly)) goto err;
120 if (!BN_GF2m_mod_sqrt_arr(y, &group->b, group->poly, ctx)) goto err;
124 if (!group->meth->field_sqr(group, tmp, x, ctx)) goto err;
125 if (!group->meth->field_div(group, tmp, &group->b, tmp, ctx)) goto err;
126 if (!BN_GF2m_add(tmp, &group->a, tmp)) goto err;
127 if (!BN_GF2m_add(tmp, x, tmp)) goto err;
130 unsigned long err = ERR_peek_last_error();
132 if (ERR_GET_LIB(err) == ERR_LIB_BN && ERR_GET_REASON(err) == BN_R_NO_SOLUTION)
139 goto err;
142 if (!group->meth->field_mul(group, y, x, z, ctx)) goto err;
145 if (!BN_GF2m_add(y, y, x)) goto err;
149 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
153 err:
179 goto err;
208 goto err;
223 if (yxi == NULL) goto err;
225 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
230 if (!group->meth->field_div(group, yxi, y, x, ctx)) goto err;
240 goto err;
252 goto err;
261 goto err;
275 goto err;
285 err:
359 if (yxi == NULL) goto err;
361 if (!BN_bin2bn(buf + 1, field_len, x)) goto err;
365 goto err;
370 if (!EC_POINT_set_compressed_coordinates_GF2m(group, point, x, y_bit, ctx)) goto err;
374 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) goto err;
378 goto err;
382 if (!group->meth->field_div(group, yxi, y, x, ctx)) goto err;
386 goto err;
390 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
396 goto err;
401 err: