diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-04-06 17:35:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-04-06 17:35:01 +0000 |
commit | a068a1d0e34c27b8f07eb1481081f5d153c5639c (patch) | |
tree | deb1598fc66c00a5e47e51f3ae4f71dd2cad05b0 /crypto/ec/ec.h | |
parent | 37b16c84bbf06a804d74e017507008fafaef9c89 (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.h | 2 |
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 */ |