aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2020-05-07 20:17:03 +0200
committerJ08nY2020-05-07 20:38:20 +0200
commitaf6637c31f55bcb7cc978b2e5dcc265317a8b6a1 (patch)
treec2c41e9cc5a63932a842d20b1c5acb918aa9d6cd
parent1d6b91fba61c791b5371b003800f3849d5aaae23 (diff)
downloadstd-curves-af6637c31f55bcb7cc978b2e5dcc265317a8b6a1.tar.gz
std-curves-af6637c31f55bcb7cc978b2e5dcc265317a8b6a1.tar.zst
std-curves-af6637c31f55bcb7cc978b2e5dcc265317a8b6a1.zip
Add WTLS curves.
-rw-r--r--bn/curves.json3
-rw-r--r--other/curves.json17
-rw-r--r--wtls/curves.json136
3 files changed, 154 insertions, 2 deletions
diff --git a/bn/curves.json b/bn/curves.json
index 76db8ef..f541b89 100644
--- a/bn/curves.json
+++ b/bn/curves.json
@@ -209,7 +209,8 @@
"full": 6
}
]
- }
+ },
+ "aliases": ["other/Fp254BNb"]
},
{
"name": "bn286",
diff --git a/other/curves.json b/other/curves.json
index 59b4201..cfb34b9 100644
--- a/other/curves.json
+++ b/other/curves.json
@@ -241,6 +241,20 @@
"order": "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD5FB21F21E95EEE17C5E69281B102D2773E27E13FD3C9719",
"cofactor": "0x04"
},
+ {"category": "other",
+ "cofactor": "0x8",
+ "desc": "",
+ "field": {"bits": 283,
+ "p": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff45",
+ "type": "Prime"},
+ "form": "Montgomery",
+ "generator": {"x": "0x5",
+ "y": "0x1eebe07dc1871896732b12d5504a32370471965c7a11f2c89865f855ab3cbd7c224e3620c31af3370788457dd5ce46df"},
+ "name": "Curve383187",
+ "oid": "",
+ "order": "0x1000000000000000000000000000000000000000000000000e85a85287a1488acd41ae84b2b7030446f72088b00a0e21",
+ "params": {"a": "0x38251", "b": "0x01"}
+ },
{
"name": "Ed25519",
"category": "other",
@@ -392,7 +406,8 @@
"full": 6
}
]
- }
+ },
+ "aliases": ["bn/bn254"]
},
{
"name": "Fp224BN",
diff --git a/wtls/curves.json b/wtls/curves.json
new file mode 100644
index 0000000..6618635
--- /dev/null
+++ b/wtls/curves.json
@@ -0,0 +1,136 @@
+{"curves": [{"category": "WTLS",
+ "cofactor": "0x1",
+ "desc": "",
+ "field": {"bits": 112,
+ "p": "0xfffffffffffffffffffffffffde7",
+ "type": "Prime"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x1", "y": "0x2"},
+ "name": "wap-wsg-idm-ecid-wtls8",
+ "oid": "2.23.43.1.4.8",
+ "order": "0x0100000000000001ecea551ad837e9",
+ "params": {"a": "0x0", "b": "0x3"}},
+ {"category": "WTLS",
+ "cofactor": "0x2",
+ "desc": "",
+ "field": {"bits": 113,
+ "poly": {"e1": 9, "m": 113},
+ "type": "Binary"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x01667979a40ba497e5d5c270780617",
+ "y": "0x00f44b4af1ecc2630e08785cebcc15"},
+ "name": "wap-wsg-idm-ecid-wtls1",
+ "oid": "2.23.43.1.4.1",
+ "order": "0x00fffffffffffffffdbf91af6dea73",
+ "params": {"a": "0x1", "b": "0x1"}},
+ {"category": "WTLS",
+ "cofactor": "0x1",
+ "desc": "",
+ "field": {"bits": 160,
+ "p": "0xfffffffffffffffffffffffffffffffffffc808f",
+ "type": "Prime"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x1", "y": "0x2"},
+ "name": "wap-wsg-idm-ecid-wtls9",
+ "oid": "2.23.43.1.4.9",
+ "order": "0x0100000000000000000001cdc98ae0e2de574abf33",
+ "params": {"a": "0x0", "b": "0x3"}},
+ {"category": "WTLS",
+ "cofactor": "0x1",
+ "desc": "",
+ "field": {"bits": 112,
+ "p": "0xdb7c2abf62e35e668076bead208b",
+ "type": "Prime"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x09487239995a5ee76b55f9c2f098,",
+ "y": "0xa89ce5af8724c0a23e0e0ff77500"},
+ "name": "wap-wsg-idm-ecid-wtls6",
+ "oid": "2.23.43.1.4.6",
+ "order": "0xdb7c2abf62e35e7628dfac6561c5",
+ "params": {"a": "0xdb7c2abf62e35e668076bead2088",
+ "b": "0x659ef8ba043916eede8911702b22"}},
+ {"category": "WTLS",
+ "cofactor": "0x2",
+ "desc": "",
+ "field": {"bits": 163,
+ "poly": {"e1": 7, "e2": 6, "e3": 2, "m": 163},
+ "type": "Binary"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x02fe13c0537bbc11acaa07d793de4e6d5e5c94eee8",
+ "y": "0x0289070fb05d38ff58321f2e800536d538ccdaa3d9"},
+ "name": "wap-wsg-idm-ecid-wtls3",
+ "oid": "2.23.43.1.4.3",
+ "order": "0x04000000000000000000020108a2e0cc0d99f8a5ef",
+ "params": {"a": "0x1", "b": "0x1"},
+ "aliases": ["nist/K-163", "secg/sect163k1"]},
+ {"category": "WTLS",
+ "cofactor": "0x2",
+ "desc": "",
+ "field": {"bits": 113,
+ "poly": {"e1": 9, "m": 113},
+ "type": "Binary"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x009d73616f35f4ab1407d73562c10f",
+ "y": "0x00a52830277958ee84d1315ed31886"},
+ "name": "wap-wsg-idm-ecid-wtls4",
+ "oid": "2.23.43.1.4.4",
+ "order": "0x0100000000000000d9ccec8a39e56f",
+ "params": {"a": "0x003088250ca6e7c7fe649ce85820f7",
+ "b": "0x00e8bee4d3e2260744188be0e9c723"}},
+ {"category": "WTLS",
+ "cofactor": "0x1",
+ "desc": "",
+ "field": {"bits": 160,
+ "p": "0xffffffffffffffffffffffffffffffff7fffffff",
+ "type": "Prime"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x4a96b5688ef573284664698968c38bb913cbfc82,",
+ "y": "0x23a628553168947d59dcc912042351377ac5fb32"},
+ "name": "wap-wsg-idm-ecid-wtls7",
+ "oid": "2.23.43.1.4.7",
+ "order": "0x0100000000000000000001f4c8f927aed3ca752257",
+ "params": {"a": "0xffffffffffffffffffffffffffffffff7ffffffc",
+ "b": "0x1c97befc54bd7a8b65acf89f81d4d4adc565fa45"}},
+ {"category": "WTLS",
+ "cofactor": "0x4",
+ "desc": "",
+ "field": {"bits": 233,
+ "poly": {"e1": 74, "m": 233},
+ "type": "Binary"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x017232ba853a7e731af129f22ff4149563a419c26bf50a4c9d6eefad6126,",
+ "y": "0x01db537dece819b7f70f555a67c427a8cd9bf18aeb9b56e0c11056fae6a3"},
+ "name": "wap-wsg-idm-ecid-wtls10",
+ "oid": "2.23.43.1.4.10",
+ "order": "0x8000000000000000000000000000069d5bb915bcd46efb1ad5f173abdf",
+ "params": {"a": "0x0", "b": "0x1"}},
+ {"category": "WTLS",
+ "cofactor": "0x2",
+ "desc": "",
+ "field": {"bits": 233,
+ "poly": {"e1": 74, "m": 233},
+ "type": "Binary"},
+ "form": "Weierstrass",
+ "generator": {"x": "0x00fac9dfcbac8313bb2139f1bb755fef65bc391f8b36f8f8eb7371fd558b",
+ "y": "0x01006a08a41903350678e58528bebf8a0beff867a7ca36716f7e01f81052"},
+ "name": "wap-wsg-idm-ecid-wtls11",
+ "oid": "2.23.43.1.4.11",
+ "order": "0x01000000000000000000000000000013e974e72f8a6922031d2603cfe0d7",
+ "params": {"a": "0x1",
+ "b": "0x0066647ede6c332c7f8c0923bb58213b333b20e9ce4281fe115f7d8f90ad"}},
+ {"category": "WTLS",
+ "cofactor": "0x1",
+ "desc": "",
+ "field": {"bits": 224,
+ "p": "0xffffffffffffffffffffffffffffffff000000000000000000000001",
+ "type": "Prime"},
+ "form": "Weierstrass",
+ "generator": {"x": "0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21",
+ "y": "0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34"},
+ "name": "wap-wsg-idm-ecid-wtls12",
+ "oid": "2.23.43.1.4.12",
+ "order": "0xffffffffffffffffffffffffffff16a2e0b8f03e13dd29455c5c2a3d",
+ "params": {"a": "0xfffffffffffffffffffffffffffffffefffffffffffffffffffffffe",
+ "b": "0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4"}}],
+ "desc": "",
+ "name": "WTLS"} \ No newline at end of file