breakage.
-/* $OpenBSD: ec2_mult.c,v 1.11 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec2_mult.c,v 1.12 2018/07/15 16:27:39 tb Exp $ */
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
return ret;
}
ret = 2;
-err:
+ err:
BN_CTX_end(ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
return ret;
}
ret = 1;
-err:
+ err:
EC_POINT_free(p);
EC_POINT_free(acc);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ec2_oct.c,v 1.10 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec2_oct.c,v 1.11 2018/07/15 16:27:39 tb Exp $ */
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
BN_CTX_free(new_ctx);
return ret;
-err:
+ err:
if (used_ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
-/* $OpenBSD: ec2_smpl.c,v 1.18 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec2_smpl.c,v 1.19 2018/07/15 16:27:39 tb Exp $ */
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
group->b.d[i] = 0;
ret = 1;
-err:
+ err:
return ret;
}
}
ret = 1;
-err:
+ err:
return ret;
}
ret = 1;
-err:
+ err:
if (ctx != NULL)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
point->Z_is_one = 1;
ret = 1;
-err:
+ err:
return ret;
}
}
ret = 1;
-err:
+ err:
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
if (!BN_GF2m_add(lh, lh, y2))
goto err;
ret = BN_is_zero(lh);
-err:
+ err:
if (ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
goto err;
ret = ((BN_cmp(aX, bX) == 0) && BN_cmp(aY, bY) == 0) ? 0 : 1;
-err:
+ err:
if (ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
ret = 1;
-err:
+ err:
if (ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ec_ameth.c,v 1.22 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_ameth.c,v 1.23 2018/07/15 16:27:39 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(EVP_PKEY_EC),
ptype, pval, penc, penclen))
return 1;
-err:
+ err:
if (ptype == V_ASN1_OBJECT)
ASN1_OBJECT_free(pval);
else
return eckey;
-ecerr:
+ ecerr:
if (eckey)
EC_KEY_free(eckey);
return NULL;
EVP_PKEY_assign_EC_KEY(pkey, eckey);
return 1;
-ecerr:
+ ecerr:
if (eckey)
EC_KEY_free(eckey);
return 0;
EVP_PKEY_assign_EC_KEY(pkey, eckey);
return 1;
-ecliberr:
+ ecliberr:
ECerror(ERR_R_EC_LIB);
-ecerr:
+ ecerr:
if (eckey)
EC_KEY_free(eckey);
return 0;
if (!ECPKParameters_print(bp, group, off))
goto err;
ret = 1;
-err:
+ err:
if (!ret)
ECerror(reason);
BN_free(pub_key);
-/* $OpenBSD: ec_asn1.c,v 1.29 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.30 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
ok = 1;
-err:
+ err:
BN_free(tmp);
return (ok);
}
ok = 1;
-err:
+ err:
free(buffer_1);
free(buffer_2);
BN_free(tmp_1);
}
ok = 1;
-err: if (!ok) {
+ err:
+ if (!ok) {
if (ret && !param)
ECPARAMETERS_free(ret);
ret = NULL;
}
ok = 1;
-err: if (!ok) {
+ err:
+ if (!ok) {
EC_GROUP_clear_free(ret);
ret = NULL;
}
*a = group;
}
-err:
+ err:
ECPKPARAMETERS_free(params);
return (group);
}
*a = ret;
return (ret);
-err:
+ err:
if (a == NULL || *a != ret)
EC_KEY_free(ret);
if (priv_key)
goto err;
}
ok = 1;
-err:
+ err:
free(buffer);
if (priv_key)
EC_PRIVATEKEY_free(priv_key);
-/* $OpenBSD: ec_check.c,v 1.8 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_check.c,v 1.9 2018/07/15 16:27:39 tb Exp $ */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
}
ret = 1;
-err:
+ err:
if (ctx != NULL)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ec_curve.c,v 1.18 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_curve.c,v 1.19 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
}
}
ok = 1;
-err:
+ err:
if (!ok) {
EC_GROUP_free(group);
group = NULL;
-/* $OpenBSD: ec_key.c,v 1.16 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_key.c,v 1.17 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
ok = 1;
-err:
+ err:
BN_free(order);
if (pub_key != NULL && eckey->pub_key == NULL)
EC_POINT_free(pub_key);
}
}
ok = 1;
-err:
+ err:
BN_CTX_free(ctx);
EC_POINT_free(point);
return (ok);
ok = 1;
-err:
+ err:
BN_CTX_free(ctx);
EC_POINT_free(point);
return ok;
-/* $OpenBSD: ec_lib.c,v 1.27 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.28 2018/07/15 16:27:39 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
return r;
-err:
+ err:
BN_CTX_end(ctx);
if (ctx_new)
BN_CTX_free(ctx);
-/* $OpenBSD: ec_mult.c,v 1.23 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ec_mult.c,v 1.24 2018/07/15 16:27:39 tb Exp $ */
/*
* Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project.
*/
len = j;
ok = 1;
-err:
+ err:
if (!ok) {
free(r);
r = NULL;
ret = 1;
-err:
+ err:
BN_CTX_free(new_ctx);
EC_POINT_free(tmp);
free(wsize);
pre_comp = NULL;
ret = 1;
-err:
+ err:
if (ctx != NULL)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
-/* $OpenBSD: eck_prn.c,v 1.14 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: eck_prn.c,v 1.15 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
goto err;
}
ret = 1;
-err:
+ err:
if (!ret)
ECerror(reason);
BN_free(p);
-/* $OpenBSD: ecp_mont.c,v 1.14 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_mont.c,v 1.15 2018/07/15 16:27:39 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
}
return 1;
-err:
+ err:
if (dest->field_data1 != NULL) {
BN_MONT_CTX_free(dest->field_data1);
dest->field_data1 = NULL;
BN_free(group->field_data2);
group->field_data2 = NULL;
}
-err:
+ err:
BN_CTX_free(new_ctx);
BN_MONT_CTX_free(mont);
BN_free(one);
-/* $OpenBSD: ecp_nist.c,v 1.12 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_nist.c,v 1.13 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
goto err;
ret = 1;
-err:
+ err:
BN_CTX_free(ctx_new);
return ret;
}
goto err;
ret = 1;
-err:
+ err:
BN_CTX_free(ctx_new);
return ret;
}
-/* $OpenBSD: ecp_nistp224.c,v 1.21 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_nistp224.c,v 1.22 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Emilia Kasper (Google) for the OpenSSL project.
*/
}
group->field_mod_func = BN_nist_mod_224;
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
ret = EC_POINT_set_Jprojective_coordinates_GFp(group, r, x, y, z, ctx);
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
goto err;
ret = 1;
pre = NULL;
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ecp_nistp256.c,v 1.20 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_nistp256.c,v 1.21 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Adam Langley (Google) for the OpenSSL project
*/
}
group->field_mod_func = BN_nist_mod_256;
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
ret = EC_POINT_set_Jprojective_coordinates_GFp(group, r, x, y, z, ctx);
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
goto err;
ret = 1;
pre = NULL;
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ecp_nistp521.c,v 1.21 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_nistp521.c,v 1.22 2018/07/15 16:27:39 tb Exp $ */
/*
* Written by Adam Langley (Google) for the OpenSSL project
*/
}
group->field_mod_func = BN_nist_mod_521;
ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
ret = EC_POINT_set_Jprojective_coordinates_GFp(group, r, x, y, z, ctx);
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
goto err;
ret = 1;
pre = NULL;
-err:
+ err:
BN_CTX_end(ctx);
EC_POINT_free(generator);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ecp_nistz256.c,v 1.5 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_nistz256.c,v 1.6 2018/07/15 16:27:39 tb Exp $ */
/* Copyright (c) 2014, Intel Corporation.
*
* Permission to use, copy, modify, and/or distribute this software for any
}
ret = 1;
-err:
+ err:
free(table);
free(p_str);
free(scalars);
ec_pre_comp = NULL;
ret = 1;
-err:
+ err:
if (ctx != NULL)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
ret = 1;
-err:
+ err:
if (ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
-/* $OpenBSD: ecp_oct.c,v 1.10 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_oct.c,v 1.11 2018/07/15 16:27:39 tb Exp $ */
/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
* for the OpenSSL project.
* Includes code written by Bodo Moeller for the OpenSSL project.
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
BN_CTX_free(new_ctx);
return ret;
-err:
+ err:
if (used_ctx)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
-/* $OpenBSD: ecp_smpl.c,v 1.20 2018/07/15 05:38:48 jsg Exp $ */
+/* $OpenBSD: ecp_smpl.c,v 1.21 2018/07/15 16:27:39 tb Exp $ */
/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
* for the OpenSSL project.
* Includes code written by Bodo Moeller for the OpenSSL project.
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_free(new_ctx);
return ret;
}
}
ret = 1;
-err:
+ err:
if (ctx != NULL)
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
}
ret = 1;
-err:
+ err:
BN_CTX_free(new_ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_free(new_ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
ret = 1;
-end:
+ end:
if (ctx) /* otherwise we already called BN_CTX_end */
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
ret = (0 == BN_ucmp(tmp, rh));
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
/* points are equal */
ret = 0;
-end:
+ end:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
ret = 1;
-err:
+ err:
BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
if (heap != NULL) {