ECSignature: add missing tests for R,S length

This commit is contained in:
Daniel Cousens 2014-06-22 01:19:19 +10:00
commit 63ce1fdfb2
2 changed files with 9 additions and 1 deletions
test/fixtures

View file

@ -149,6 +149,14 @@
"exception": "Invalid DER encoding",
"hex": "300c020400ffffff020200ffffff"
},
{
"exception": "R length is zero",
"hex": "30080200020400ffffff"
},
{
"exception": "S length is zero",
"hex": "3008020400ffffff0200"
},
{
"exception": "R value is negative",
"hex": "300c0204ffffffff020400ffffff"