aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-10-20 19:17:28 -0400
committerJack Lloyd <[email protected]>2020-10-20 19:17:28 -0400
commit54ccb865195aeecd40d6081dca0dab157b9f8fa5 (patch)
tree1b2a52a81097bdbe92136a56f831d9b9f31103a6 /src/tests/data
parentf33f00e5d0add6b17c3a51407720710a58bacd0b (diff)
Fix ECC multiexponentiation when two points are related
If the points are related by x = -{1,2,3}y then an infinity was silently produced, causing validation failures. Fixes #2424
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/pubkey/ecdsa_verify.vec8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/data/pubkey/ecdsa_verify.vec b/src/tests/data/pubkey/ecdsa_verify.vec
index 2bdf3299b..df3b2a41c 100644
--- a/src/tests/data/pubkey/ecdsa_verify.vec
+++ b/src/tests/data/pubkey/ecdsa_verify.vec
@@ -54,3 +54,11 @@ Px = 0x6564C83962A17949120C5E0E65290527A02CC7B635A829B33C083A09AAF67A12
Py = 0xBFECD7CD5956512DF2A051356B2DF592D93C739128828405E1F37F84B7E27CF9
Msg = 04FEFDFCFBFAF9F8F7F6F5F4F3F2F1F0EFEEEDECEBEAE9E8E7E6E5E4E3E2E1E0DFDEDDDCDBDAD9D8
Signature = 264A27F175848F0A110B2E7B03886B94777FB5ECBE2E8CD674AE196A6C80D8FFC8B5C6C00EACB1C76A3BAD03F8FFD4B58784BF35E104E721FF8F3F81AC9E6E91
+
+# https://github.com/randombit/botan/issues/2424
+
+Group = secp256k1
+Px = 55066263022277343669578718895168534326250603453777594175500187360389116729240
+Py = 83121579216557378445487899878180864668798711284981320763518679672151497189239
+Msg = 1111111111111111111111111111111111111111111111111111111111111111
+Signature = f490078fed0f0ca058fba78375f0e42678b25242238a664d4ed6784f7c284ec77cf9b997a778f8fe101f480d3c75cde95c5d712935fa5b9a4edf8e6654379b9c