-/* $OpenBSD: ecp_smpl.c,v 1.51 2023/07/26 12:16:13 tb Exp $ */
+/* $OpenBSD: ecp_smpl.c,v 1.52 2023/07/26 12:16:55 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.
int
ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
{
- BIGNUM *p, *a, *b, *order, *tmp_1, *tmp_2;
+ BIGNUM *p, *a, *b, *tmp_1, *tmp_2;
int ret = 0;
BN_CTX_start(ctx);
goto err;
if ((tmp_2 = BN_CTX_get(ctx)) == NULL)
goto err;
- if ((order = BN_CTX_get(ctx)) == NULL)
- goto err;
if (!EC_GROUP_get_curve(group, p, a, b, ctx))
goto err;