move EC_GROUP_get_basis_type() from ec_lib.c to ec_asn1.c
[openssl.git] / crypto / ec / ec_lib.c
index 9bccb073c6f45ba8efc88f5f8384dc8dde0685ed..9669f42aab94ebe10791c773236a1b209fc05d3f 100644 (file)
@@ -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)