Skip to content

Commit

Permalink
update deps, fixutres, and verify
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed May 19, 2015
1 parent 2ea39b2 commit ef78685
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"bn.js": "^1.0.0",
"bn.js": "^2.0.0",
"browserify-rsa": "^2.0.0",
"create-hash": "^1.1.0",
"create-hmac": "^1.1.2",
"elliptic": "^1.0.0",
"elliptic": "^2.0.0",
"inherits": "^2.0.1",
"parse-asn1": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"private": "LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUJWQUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQVQ0d2dnRTZBZ0VBQWtFQW95N092ZUFRcGVyMVBoMlMKMTFXN1BqT3F0SGJPK3lnR1VmZ3BJSVVuL25TamxJeGtVNlF5U0Ftekh6L0pEYWdteTNTQ3A2T2pBTmNBcHhpTwpZZ1huWlFJREFRQUJBa0I3ZUl0TitDQWdxcXR0bUlybkRDTmxhVXFjeWRqTENQbmZROW82bFFZeDdYRjdCdkQ2CmZaeEtlODJXK21UMW1BQ2hKeGdITG5MS0wrOUpjNmdMUzljQkFpRUEyYzFyTklTM0ZLTTNmbXNLajdKU2FmbVEKNnZ3anVsdjVvbEpNL2N0M1IvRUNJUUMvelNoRkRNZmVoQXlBT2xTc3NCNlhGZ2syQU9xanBnY1lSMXQ5R1lxcQp0UUlnUTBWeFFVMWtodGxLd0o4cktlcjREWWRwdlVxWGRtNEdFcDY4N1A2MUh1RUNJUUNRSzdndlh4SUZzcUJxCjZtMm5lS01sMGt5T0tWWTJPS0J3b1lLbG9FTlpXUUlnWWRlYWVBY2RIMzg0c2pZa202M05jMzFzQnJyUE5SeGsKSnBVYk9SZzFiNjA9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K",
"message":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJoZWxsbyI6IndvcmxkIiwiaWF0IjoxNDMyMDQyNTQ3fQ",
"scheme": "RSA-SHA256",
"signature":"D03ZEnRWfMMkL6TtFypXftaLkQiJTo5x1LhjjCnMlB9fuDRsvnpHW2sB35nX1dlRqReK+AVadf4rLCbMAUIljg=="
"signature":"0f4dd91274567cc3242fa4ed172a577ed68b9108894e8e71d4b8638c29cc941f5fb8346cbe7a475b6b01df99d7d5d951a9178af8055a75fe2b2c26cc0142258e"
}
],
"kvectors": [
Expand Down
2 changes: 1 addition & 1 deletion verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ecVerify (sig, hash, pub) {
var curve = new elliptic.ec(curveId)

var pubkey = pub.data.subjectPrivateKey.data
return curve.verify(hash.toString('hex'), sig.toString('hex'), pubkey.toString('hex'))
return curve.verify(hash, sig, pubkey)
}
function dsaVerify (sig, hash, pub) {
var p = pub.data.p
Expand Down

0 comments on commit ef78685

Please sign in to comment.