aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-12-11 11:26:48 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-12-10 22:26:48 -0500
commit489bae980a8e1f2ae7d98933c8b8ff8120ba0841 (patch)
treef4839b18a9720cec3a3814d65ed699b5ccaae4d9
parent75cce2299b30a8d10d032155de7e4489966813fd (diff)
downloadcryptography-489bae980a8e1f2ae7d98933c8b8ff8120ba0841.tar.gz
cryptography-489bae980a8e1f2ae7d98933c8b8ff8120ba0841.tar.bz2
cryptography-489bae980a8e1f2ae7d98933c8b8ff8120ba0841.zip
add compressed point EC vectors (#4637)
-rw-r--r--docs/development/test-vectors.rst2
-rw-r--r--vectors/cryptography_vectors/asymmetric/EC/compressed_points.txt25
2 files changed, 27 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst
index 10a15b23..b1c51de3 100644
--- a/docs/development/test-vectors.rst
+++ b/docs/development/test-vectors.rst
@@ -102,6 +102,8 @@ Custom asymmetric vectors
* ``x509/custom/ca/ca_key.pem`` - An unencrypted PCKS8 ``secp256r1`` key. It is
the private key for the certificate ``x509/custom/ca/ca.pem``. This key is
encoded in several of the PKCS12 custom vectors.
+* ``asymmetric/EC/compressed_points.txt`` - Contains compressed public points
+ generated using OpenSSL.
Key exchange
diff --git a/vectors/cryptography_vectors/asymmetric/EC/compressed_points.txt b/vectors/cryptography_vectors/asymmetric/EC/compressed_points.txt
new file mode 100644
index 00000000..8df0a9b5
--- /dev/null
+++ b/vectors/cryptography_vectors/asymmetric/EC/compressed_points.txt
@@ -0,0 +1,25 @@
+# Vectors generated by OpenSSL
+
+COUNT = 0
+CURVE = SECP256R1
+POINT = 037399336a9edf2197c2f8eb3d39aed9c34a66e45d918a07dc7684c42c9b37ac68
+X = 7399336a9edf2197c2f8eb3d39aed9c34a66e45d918a07dc7684c42c9b37ac68
+Y = 6699ececc4f5f0d756d3c450708a0694eb0a07a68b805070b40b058d27271f6d
+
+COUNT = 1
+CURVE = SECP256R1
+POINT = 02d13b763988943682267deb6298ad3bdfec192459f9e9bf2d2227c8ec3e8ced91
+X = d13b763988943682267deb6298ad3bdfec192459f9e9bf2d2227c8ec3e8ced91
+Y = badeb7ee4662680c587a84de3f2d1ca7284b65790597408836eea3207e2f3a22
+
+COUNT = 2
+CURVE = SECP256K1
+POINT = 032cac5ae983fcb88bc502dd48d561c810e2b40edc7b6b67ea52ceb415093be0d0
+X = 2cac5ae983fcb88bc502dd48d561c810e2b40edc7b6b67ea52ceb415093be0d0
+Y = 1445c276b193e10679bbdf638717c8db78021e79639e171e8cd37057b7798d0d
+
+COUNT = 3
+CURVE = SECP256K1
+POINT = 02e836ff83c6ab4d7ea391f4897cb926b16cbe6eb0991dd81b4a294c65fe9a9691
+X = e836ff83c6ab4d7ea391f4897cb926b16cbe6eb0991dd81b4a294c65fe9a9691
+Y = 8cb0f15636148db6f54ad50c7da4aa2920519391678c24ad8db8097c6bf168b0