aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-06 12:39:53 -0500
committerJack Lloyd <[email protected]>2016-11-06 12:39:53 -0500
commitf731fce948595fc82ab46298608f3d099644f992 (patch)
tree24cf66f4be717a67db06466651a40d142b4a7fb0 /src/tests/data
parentfac0ef22da62ee757d23e3fcfabcac699ec40668 (diff)
Add signature KAT test for GOST 34.10-2001
Vectors here just whatever we spit out, but I can't find any GOST vectors using the 'A' param set. Anyway at least with this, we are testing to have consistent behavior across platforms.
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/pubkey/gost_3410_sign.vec17
-rw-r--r--src/tests/data/pubkey/gost_3410_verify.vec (renamed from src/tests/data/pubkey/gost_3410.vec)0
2 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/data/pubkey/gost_3410_sign.vec b/src/tests/data/pubkey/gost_3410_sign.vec
new file mode 100644
index 000000000..25d5155b7
--- /dev/null
+++ b/src/tests/data/pubkey/gost_3410_sign.vec
@@ -0,0 +1,17 @@
+
+# These values were generated by Botan and have not been tested against any
+# other implementation.
+
+Group = gost_256A
+Privkey = 0xFE406F383A54127453AED406FA9A3B610B28F89FC918C07A5A75289E97B3A991
+Hash = GOST-34.11
+Msg = ABCD
+Nonce = 3E0A6097034780CCF32885B870F84B0AA20138BE94A1AA1F77F8997CAC25C58E
+Signature = 60053488E6936975A4913083FE16A0CF620FA75732B563AB65B82D37A825BE7D0965C38281A01D23FA5F5D332B339EB2602A564563C005335269A2E811520563
+
+Group = gost_256A
+Privkey = 0xFDCE35FFFF3AEF1C3AB247F31D733490B4029E699FC2D1C24B2F7C526CBC1445
+Hash = GOST-34.11
+Msg = 33C466741BB472998A27E26E7F77EBF3
+Nonce = 6844F464FA0147FB7D798137680FBA6EA2E709814E3A8B70EFC26F446DE9F94B
+Signature = 5E39519E12B5208B3A0A1A1CDD44E2629F0F76A51DFED8484A8B67A2E46D5B871AFADA58E26D1FE08AB4D2E67BF0FF8508870B417D6EA1224FA98B3165D8A032
diff --git a/src/tests/data/pubkey/gost_3410.vec b/src/tests/data/pubkey/gost_3410_verify.vec
index 5348467a6..5348467a6 100644
--- a/src/tests/data/pubkey/gost_3410.vec
+++ b/src/tests/data/pubkey/gost_3410_verify.vec