From 52689fc98b0d9d00821a802229adc1e810121a1c Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 30 Jul 2014 14:47:21 +1000 Subject: [PATCH] tests: adds r = s = -n ecdsa verify test case --- test/fixtures/ecdsa.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/fixtures/ecdsa.json b/test/fixtures/ecdsa.json index 03a2687..ea53d7c 100644 --- a/test/fixtures/ecdsa.json +++ b/test/fixtures/ecdsa.json @@ -207,6 +207,15 @@ "r": "02", "s": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141" } + }, + { + "description": "Invalid r, s values (r = s = -n)", + "d": "01", + "e": "01", + "signature": { + "r": "-115792089237316195423570985008687907852837564279074904382605163141518161494337", + "s": "-115792089237316195423570985008687907852837564279074904382605163141518161494337" + } } ] }