diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-12 17:23:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-12 17:23:32 +0000 |
commit | b3310161249a848a5243952467a1f3927ad78bfa (patch) | |
tree | effad6f46ee2d9e78d9b03807f0e4d97c70804b9 /crypto/ec/ec_key.c | |
parent | afb4191304f1fd67569be10f04abf57064cbb197 (diff) | |
download | openssl-b3310161249a848a5243952467a1f3927ad78bfa.tar.gz |
New option to disable characteristic two fields in EC code.
Diffstat (limited to 'crypto/ec/ec_key.c')
-rw-r--r-- | crypto/ec/ec_key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index a9e780da44..2e91b5405d 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -400,7 +400,7 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, BIGNUM *y) tx = BN_CTX_get(ctx); ty = BN_CTX_get(ctx); - +#ifndef OPENSSL_NO_EC2M if (is_char_two) { if (!EC_POINT_set_affine_coordinates_GF2m(key->group, point, @@ -411,6 +411,7 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, BIGNUM *y) goto err; } else +#endif { if (!EC_POINT_set_affine_coordinates_GFp(key->group, point, x, y, ctx)) |