From 3d65488108a021f11ff73dce8d0af09330f39007 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 5 Jul 2017 18:30:00 -0700 Subject: [PATCH] crypto: fix duplicate names. --- lib/crypto/aes.js | 2 +- lib/crypto/digest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crypto/aes.js b/lib/crypto/aes.js index c74e5716..dd579bc3 100644 --- a/lib/crypto/aes.js +++ b/lib/crypto/aes.js @@ -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()); diff --git a/lib/crypto/digest.js b/lib/crypto/digest.js index a9ed5967..ef0d8dd2 100644 --- a/lib/crypto/digest.js +++ b/lib/crypto/digest.js @@ -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(); };