Skip to content

Commit 44edb0a

Browse files
FlavioMartinhopanva
authored andcommitted
style: avoid using var shorthands for UglifyJS's sake
1 parent 9b08515 commit 44edb0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/algorithms/ecdsa.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function ecdsaVerifyFN(hash) {
227227
}
228228
return {
229229
data: pdata,
230-
mac,
230+
mac: mac,
231231
valid: true
232232
};
233233
});

lib/algorithms/rsaes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function rsaesEncryptFn(name) {
9191
key = rsaUtil.convertToPem(key, true);
9292

9393
var cdata = helpers.nodeCrypto.publicEncrypt({
94-
key,
94+
key: key,
9595
padding: helpers.nodeCrypto.constants[nodeSupport[name]]
9696
}, pdata);
9797

@@ -168,7 +168,7 @@ function rsaesDecryptFn(name) {
168168
nodejs = function(key, pdata) {
169169
key = rsaUtil.convertToPem(key, false);
170170
return helpers.nodeCrypto.privateDecrypt({
171-
key,
171+
key: key,
172172
padding: helpers.nodeCrypto.constants[nodeSupport[name]]
173173
}, pdata);
174174
};

0 commit comments

Comments
 (0)