We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95d4732 + 0bdf973 commit 131e029Copy full SHA for 131e029
index.js
@@ -70,9 +70,7 @@ function createKeySigner(bits) {
70
if (!bufferOrString(privateKey) && !(typeof privateKey === 'object'))
71
throw typeError(MSG_INVALID_SIGNER_KEY);
72
thing = normalizeInput(thing);
73
- // Even though we are specifying "RSA" here, this works with ECDSA
74
- // keys as well.
75
- var signer = crypto.createSign('RSA-SHA' + bits);
+ var signer = crypto.createSign('SHA' + bits);
76
var sig = (signer.update(thing), signer.sign(privateKey, 'base64'));
77
return fromBase64(sig);
78
}
0 commit comments