aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/rfc6979.vec
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-11-11 05:43:01 -0500
committerJack Lloyd <[email protected]>2015-11-11 05:43:01 -0500
commitcf05aea092fad448c2f4a8e8b66159237096ba8e (patch)
tree00631bcc84809a1eeac5dd32dd92c62143ef831b /src/tests/data/rfc6979.vec
parent6bb38ae2fa0e1be46b3a3256ac03f435b16a57ea (diff)
Update and consolidate the test framework.
The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong.
Diffstat (limited to 'src/tests/data/rfc6979.vec')
-rw-r--r--src/tests/data/rfc6979.vec14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/data/rfc6979.vec b/src/tests/data/rfc6979.vec
new file mode 100644
index 000000000..a1c54b29b
--- /dev/null
+++ b/src/tests/data/rfc6979.vec
@@ -0,0 +1,14 @@
+
+[SHA-256]
+# From RFC 6979 A.1.1
+Q = 0x4000000000000000000020108A2E0CC0D99F8A5EF
+X = 0x09A4D6792295A7F730FC3F2B49CBC0F62E862272F
+H = 0x01795EDF0D54DB760F156D0DAC04C0322B3A204224
+K = 0x23AF4074C90A02B3FE61D286D5C87F425E6BDD81B
+
+[SHA-1]
+# DSA 1024 bits test #1
+Q = 0x996F967F6C8E388D9E28D01E205FBA957A5698B1
+X = 0x411602CB19A6CCC34494D79D98EF1E7ED5AF25F7
+H = 0x8151325DCDBAE9E0FF95F9F9658432DBEDFDB209
+K = 0x7BDB6B0FF756E1BB5D53583EF979082F9AD5BD5B