Skip to content

Commit

Permalink
[sqwsh] tiny simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Sep 13, 2017
1 parent c54ea14 commit 88716d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ Verify.prototype.verify = function verify(object, signature, signatureFormat) {

function makeRSAMethod(method, defaultPadding) {
return function(options, buffer) {
var key = options.key || options;
var key = toBuf(options.key || options);
var passphrase = options.passphrase || null;
var padding = options.padding || defaultPadding;
return method(toBuf(key), buffer, padding, passphrase);
return method(key, buffer, padding, passphrase);
};
}

Expand Down

0 comments on commit 88716d9

Please sign in to comment.