summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-04-06 17:35:01 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-04-06 17:35:01 +0000
commita068a1d0e34c27b8f07eb1481081f5d153c5639c (patch)
treedeb1598fc66c00a5e47e51f3ae4f71dd2cad05b0 /crypto/ec/ec.h
parent37b16c84bbf06a804d74e017507008fafaef9c89 (diff)
Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
between NIDs and the more common NIST names such as "P-256". Enhance ecparam utility and ECC method to recognise the NIST names for curves. (backport from HEAD)
Diffstat (limited to 'crypto/ec/ec.h')
-rw-r--r--crypto/ec/ec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h
index 9d01325af3..f7ac5aec6a 100644
--- a/crypto/ec/ec.h
+++ b/crypto/ec/ec.h
@@ -396,6 +396,8 @@ typedef struct {
* are filled with the data of the first nitems internal groups */
size_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems);
+const char *EC_curve_nid2nist(int nid);
+int EC_curve_nist2nid(const char *name);
/********************************************************************/
/* EC_POINT functions */