]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ecc: Add names for defined elliptic curves
authorTobias Brunner <tobias@strongswan.org>
Fri, 13 Sep 2013 15:00:02 +0000 (17:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 16 Sep 2013 13:23:10 +0000 (15:23 +0200)
src/libstrongswan/crypto/ec_params.c
src/libstrongswan/crypto/ec_params.h

index 81e7034a8831b370d99f265e301f6403c1f7e486..05c110f2ab1f6f4258d868470989d96dbada819b 100644 (file)
 
 #include <asn1/oid.h>
 
+ENUM_BEGIN(ec_curve_names, ECC_UNKNOWN, ECC_BP_512,
+       "unknown",
+       "nist192",
+       "nist224",
+       "nist256",
+       "nist384",
+       "nist521",
+       "bp224",
+       "bp256",
+       "bp384",
+       "bp512");
+ENUM_END(ec_curve_names, ECC_BP_512);
+
 /**
  * List of supported ECC curves.
  */
index 06aa49b3db5afa9542dc57de29934e467a00b543..f33fca4b92721a0e47d585b22d690ca4f919759e 100644 (file)
@@ -51,6 +51,11 @@ enum ec_curve_t {
        ECC_BP_512,
 };
 
+/**
+ * enum name for ec_curve_t.
+ */
+extern enum_name_t *ec_curve_names;
+
 /**
  * Parameters for a specific ECC curve.
  *