summaryrefslogtreecommitdiff
path: root/cipher/ecc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-05-14 10:26:25 +0200
committerWerner Koch <wk@gnupg.org>2012-05-14 10:26:25 +0200
commit39c123b729a472ace039f8536d07f8b9a5f4675a (patch)
tree0f42ba146f9ab825202863b13e1cc75ac54eab83 /cipher/ecc.c
parentdcef6b7836428f1fc10af02e431cf6ab112dc13d (diff)
downloadlibgcrypt-39c123b729a472ace039f8536d07f8b9a5f4675a.tar.gz
Add curve aliases from RFC-5656.
* cipher/ecc.c (curve_aliases): Add "nistp???" entries.
Diffstat (limited to 'cipher/ecc.c')
-rw-r--r--cipher/ecc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c
index bbff7eec..70431fef 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -96,19 +96,24 @@ static const struct
{ "NIST P-192", "1.2.840.10045.3.1.1" }, /* X9.62 OID */
{ "NIST P-192", "prime192v1" }, /* X9.62 name. */
{ "NIST P-192", "secp192r1" }, /* SECP name. */
+ { "NIST P-192", "nistp192" }, /* rfc5656. */
{ "NIST P-224", "secp224r1" },
{ "NIST P-224", "1.3.132.0.33" }, /* SECP OID. */
+ { "NIST P-224", "nistp224" }, /* rfc5656. */
{ "NIST P-256", "1.2.840.10045.3.1.7" }, /* From NIST SP 800-78-1. */
{ "NIST P-256", "prime256v1" },
{ "NIST P-256", "secp256r1" },
+ { "NIST P-256", "nistp256" }, /* rfc5656. */
{ "NIST P-384", "secp384r1" },
{ "NIST P-384", "1.3.132.0.34" },
+ { "NIST P-384", "nistp384" }, /* rfc5656. */
{ "NIST P-521", "secp521r1" },
{ "NIST P-521", "1.3.132.0.35" },
+ { "NIST P-521", "nistp521" }, /* rfc5656. */
{ "brainpoolP160r1", "1.3.36.3.3.2.8.1.1.1" },
{ "brainpoolP192r1", "1.3.36.3.3.2.8.1.1.3" },