aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-07 11:47:08 -0400
committerJack Lloyd <[email protected]>2017-08-07 11:47:08 -0400
commitaaba0768bbfe98b97024bcee03b5ba8146ef6a41 (patch)
tree7417e9f918750d0a3f01d2f0874c5ff257ae3e8f /src/tests/data
parent01317855dc2e076050277073ac40c308ad7a4da5 (diff)
parent0f97d8b5cdabd0f57b5e936deff7be3d548abd9c (diff)
Merge GH #1142 Add SM2 encryption scheme
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/pubkey/sm2_enc.vec14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/data/pubkey/sm2_enc.vec b/src/tests/data/pubkey/sm2_enc.vec
new file mode 100644
index 000000000..f878a11a2
--- /dev/null
+++ b/src/tests/data/pubkey/sm2_enc.vec
@@ -0,0 +1,14 @@
+# Example from draft-shen-sm2-ecdsa-02
+
+P = 0x8542D69E4C044F18E8B92435BF6FF7DE457283915C45517D722EDB8B08F1DFC3
+A = 0x787968B4FA32C3FD2417842E73BBFEFF2F3C848B6831D7E0EC65228B3937E498
+B = 0x63E4C6D3B23B0C849CF84241484BFE48F61D59A5B16BA06E6E12D1DA27C5249A
+xG = 0x421DEBD61B62EAB6746434EBC3CC315E32220B3BADD50BDC4C4E6C147FEDD43D
+yG = 0x0680512BCBB42C07D47349D2153B70C4E5D7FDFCBFA36EA1A85841B9E46E09A2
+Order = 0x8542D69E4C044F18E8B92435BF6FF7DD297720630485628D5AE74EE7C32E79B7
+Cofactor = 1
+
+Msg = 656E6372797074696F6E207374616E64617264
+x = 0x1649AB77A00637BD5E2EFE283FBF353534AA7F7CB89463F208DDBC2920BB0DA0
+Nonce = 4C62EEFD6ECFC2B95B92FD6C3D9575148AFA17425546D49018E5388D49DD7B4F
+Ciphertext = 04245C26FB68B1DDDDB12C4B6BF9F2B6D5FE60A383B0D18D1C4144ABF17F6252E776CB9264C2A7E88E52B19903FDC47378F605E36811F5C07423A24B84400F01B8650053A89B41C418B0C3AAD00D886C002864679C3D7360C30156FAB7C80A0276712DA9D8094A634B766D3A285E07480653426D