diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-26 13:33:13 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-26 13:33:13 +0200 |
commit | 8aefe253a7bd734bcfa025cd6f5fe3ab31206583 (patch) | |
tree | c217c10112706d98b122d9c6c67282a492c448e3 /crypto/ec/ec_lib.c | |
parent | ASN1 for binary curves (diff) | |
download | openssl-8aefe253a7bd734bcfa025cd6f5fe3ab31206583.tar.xz openssl-8aefe253a7bd734bcfa025cd6f5fe3ab31206583.zip |
move EC_GROUP_get_basis_type() from ec_lib.c to ec_asn1.c
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r-- | crypto/ec/ec_lib.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 9bccb073c6..9669f42aab 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -537,45 +537,6 @@ void EC_GROUP_clear_free_extra_data(EC_GROUP *group) } -int EC_GROUP_get_basis_type(const EC_GROUP *group, unsigned int *k1, - unsigned int *k2, unsigned int *k3) - { - int i = 0; - - if (group == NULL) - return 0; - - if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) != - NID_X9_62_characteristic_two_field) - /* everything else is currently not supported */ - return 0; - - while (group->poly[i] != 0) - i++; - - if (i == 4) - { - if (k1) - *k1 = group->poly[3]; - if (k2) - *k2 = group->poly[2]; - if (k3) - *k3 = group->poly[1]; - - return NID_X9_62_ppBasis; - } - else if (i == 2) - { - if (k1) - *k1 = group->poly[1]; - - return NID_X9_62_tpBasis; - } - else - /* everything else is currently not supported */ - return 0; - } - /* functions for EC_POINT objects */ EC_POINT *EC_POINT_new(const EC_GROUP *group) |