Skip to content

Commit

Permalink
crypto: fix duplicate names.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jul 17, 2017
1 parent ca48ab7 commit 3d65488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/crypto/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports.encipher = function encipher(data, key, iv) {
* @returns {Buffer}
*/

exports.decipher = function decipher(data, key, iv) {
exports.decipher = function _decipher(data, key, iv) {
let decipher = crypto.createDecipheriv('aes-256-cbc', key, iv);
try {
return util.concat(decipher.update(data), decipher.final());
Expand Down
2 changes: 1 addition & 1 deletion lib/crypto/digest.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ exports.hash256 = function hash256(data) {
* @returns {Buffer} HMAC
*/

exports.hmac = function hmac(alg, data, key) {
exports.hmac = function _hmac(alg, data, key) {
let hmac = crypto.createHmac(alg, key);
return hmac.update(data).digest();
};
Expand Down

0 comments on commit 3d65488

Please sign in to comment.