diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-26 18:08:53 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-26 18:08:53 +0000 |
commit | 34f1f2a81cd15ed15007506a3d50c1ce73986c10 (patch) | |
tree | 8c210972bc816e3215e7987467f53b938ce36722 /crypto/ec/ec2_smpl.c | |
parent | c96f0fd2d110fe5ff48a4fbc0e95f78b26323908 (diff) |
less specific interface for EC_GROUP_get_basis_type
Submitted by: Nils Larsch, Bodo Moeller
Diffstat (limited to 'crypto/ec/ec2_smpl.c')
-rw-r--r-- | crypto/ec/ec2_smpl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index 980d396c81..ece8abb8f6 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -200,7 +200,11 @@ int ec_GF2m_simple_group_set_curve(EC_GROUP *group, /* group->field */ if (!BN_copy(&group->field, p)) goto err; i = BN_GF2m_poly2arr(&group->field, group->poly, 5); - if ((i != 5) && (i != 3)) goto err; + if ((i != 5) && (i != 3)) + { + ECerr(EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE, EC_R_UNSUPPORTED_FIELD); + goto err; + } /* group->a */ if (!BN_GF2m_mod_arr(&group->a, a, group->poly)) goto err; |