Skip to content

Commit

Permalink
test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Metcalf committed Nov 15, 2014
1 parent 173fd78 commit 735a056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function testIt(pub, priv, message, scheme) {
t.equals(mySig.toString('hex'), nodeSig.toString('hex'), 'equal sigs');
var myVer = myCrypto.createVerify(scheme);
var nodeVer = nodeCrypto.createVerify(scheme);
t.ok(nodeVer.update(message).verify(pub, mySig), 'test node');
t.ok(myVer.update(message).verify(pub, nodeSig), 'test me');
t.ok(nodeVer.update(message).verify(pub, mySig), 'node validate my sig');
t.ok(myVer.update(message).verify(pub, nodeSig), 'me validate node sig');
});
}
testIt(pub1024, priv1024, new Buffer('sha224 with 1024 keys'), 'RSA-SHA224');
Expand Down

0 comments on commit 735a056

Please sign in to comment.