[gcr/ecc: 2/3] WIP add ECC types
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/ecc: 2/3] WIP add ECC types
- Date: Thu, 17 Apr 2014 05:08:01 +0000 (UTC)
commit b6f4c2633d976dedd8871f5e0b0022440c250c6f
Author: Stef Walter <stefw redhat com>
Date: Sun Apr 13 14:35:16 2014 +0200
WIP add ECC types
egg/pk.asn | 13 +++++++++++++
egg/pk.asn.h | 10 ++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/egg/pk.asn b/egg/pk.asn
index 347323c..2cd1f00 100644
--- a/egg/pk.asn
+++ b/egg/pk.asn
@@ -101,5 +101,18 @@ DHParameter ::= SEQUENCE {
privateValueLength INTEGER OPTIONAL
}
+-- ECC from RFC5480
+ECPoint ::= OCTET STRING
+
+ECParameters ::= CHOICE {
+ namedCurve OBJECT IDENTIFIER
+}
+
+ECPrivateKey ::= SEQUENCE {
+ Version INTEGER, -- { ecPrivkeyVer1(1) }
+ privateKey OCTET STRING,
+ parameters [0] ECParameters OPTIONAL,
+ publicKey [1] BIT STRING OPTIONAL
+}
END
diff --git a/egg/pk.asn.h b/egg/pk.asn.h
index 8466b68..4f52c7a 100644
--- a/egg/pk.asn.h
+++ b/egg/pk.asn.h
@@ -67,5 +67,15 @@ const asn1_static_node pk_asn1_tab[] = {
{ "prime", 1073741827, NULL },
{ "base", 1073741827, NULL },
{ "privateValueLength", 16387, NULL },
+ { "ECPoint", 1073741831, NULL },
+ { "ECParameters", 1610612754, NULL },
+ { "namedCurve", 12, NULL },
+ { "ECPrivateKey", 536870917, NULL },
+ { "Version", 1073741827, NULL },
+ { "privateKey", 1073741831, NULL },
+ { "parameters", 1610637314, "ECParameters"},
+ { NULL, 2056, "0"},
+ { "publicKey", 536895494, NULL },
+ { NULL, 2056, "1"},
{ NULL, 0, NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]