Cleaned lint.

This commit is contained in:
n1474335 2017-10-09 15:17:20 +00:00
parent 7feafbf0e7
commit 0e3751407b
1 changed files with 4 additions and 2 deletions

View File

@ -16,20 +16,22 @@ import Checksum from "./Checksum.js";
*/
const Hash = {
/** Generic hash function
/**
* Generic hash function.
*
* @param {string} name
* @param {string} input
* @returns {string}
*/
runHash: function(name, input) {
let hasher = CryptoApi.hasher(name);
const hasher = CryptoApi.hasher(name);
hasher.state.message = input;
hasher.state.length += input.length;
hasher.process();
return hasher.finalize().stringify("hex");
},
/**
* MD2 operation.
*