aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/pubkey/ecdsa_rfc6979.vec
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-08-26 13:59:55 +0200
committerDaniel Neus <[email protected]>2016-08-26 13:59:55 +0200
commit1588710009edd035aab9e12a6a2e8320889c1997 (patch)
tree8f479013ba7ec48a94bfea729985f2d9c60d1e1a /src/tests/data/pubkey/ecdsa_rfc6979.vec
parent1354eabeb65a38f933dda42b16f7645a77b4972d (diff)
Add tests with a message hash that contains leading zeros
Diffstat (limited to 'src/tests/data/pubkey/ecdsa_rfc6979.vec')
-rw-r--r--src/tests/data/pubkey/ecdsa_rfc6979.vec11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/data/pubkey/ecdsa_rfc6979.vec b/src/tests/data/pubkey/ecdsa_rfc6979.vec
index a9fafadc6..3015ea3b8 100644
--- a/src/tests/data/pubkey/ecdsa_rfc6979.vec
+++ b/src/tests/data/pubkey/ecdsa_rfc6979.vec
@@ -161,6 +161,7 @@ Msg = 73616D706C65
Hash = SHA-1
Signature = 00343B6EC45728975EA5CBA6659BBB6062A5FF89EEA58BE3C80B619F322C87910FE092F7D45BB0F8EEE01ED3F20BABEC079D202AE677B243AB40B5431D497C55D75D00E7B0E675A9B24413D448B8CC119D2BF7B2D2DF032741C096634D6D65D0DBE3D5694625FB9E8104D3B842C1B0E2D0B98BEA19341E8676AEF66AE4EBA3D5475D5D16
+
Hash = SHA-224
Signature = 01776331CFCDF927D666E032E00CF776187BC9FDD8E69D0DABB4109FFE1B5E2A30715F4CC923A4A5E94D2503E9ACFED92857B7F31D7152E0F8C00C15FF3D87E2ED2E0050CB5265417FE2320BBB5A122B8E1A32BD699089851128E360E620A30C7E17BA41A666AF126CE100E5799B153B60528D5300D08489CA9178FB610A2006C254B41F
@@ -361,3 +362,13 @@ Signature = 0E1F2F0E298D5D281B69D211792C464D4AB540C1A998BAB13855C852C25BEF3D0C8C
Hash = SHA-512
Signature = 0A818869A89433DB9E5838D6934FA7C15259250B8FE025DB3DC41036B120288A6DFB2464BF9062D035A6FBEC2B8B298A53F228DD7E8501BA479C008B060F0DEC
+
+# Msg that produces a hash with leading zeros. Test created with BouncyCastle
+
+Group = secp521r1
+X = 0x0FAD06DAA62BA3B25D2FB40133DA757205DE67F5BB0018FEE8C86E1B68C7E75CAA896EB32F1F47C70855836A6D16FCC1466F6D8FBEC67DB89EC0C08B0E996B83538
+
+Msg = FCABA2CF434AC8DCFCEC
+
+Hash = SHA-1
+Signature = 19F10F75FA90A9129D596F3461829B3FE24DA8344C09CABA4F5BBEE36F246C356ED95C609E76D2B3B17480D45CBF11FAF395846BD3978657F8932345EE284ED32D11C07B02B74254F6F1C715D1A63B9FAA30E43C72645D20F30525EB88BB675C3BAEE1D20BAFA463F899253F5557033EDFC41F9748010FEDF73612774AC99A3B21082D \ No newline at end of file