diff options
Diffstat (limited to 'core/hmac.js')
-rw-r--r-- | core/hmac.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/hmac.js b/core/hmac.js index 87237b2..59dea19 100644 --- a/core/hmac.js +++ b/core/hmac.js @@ -31,10 +31,9 @@ sjcl.misc.hmac = function (key, Hash) { /** HMAC with the specified hash function. Also called encrypt since it's a prf. * @param {bitArray|String} data The data to mac. - * @param {Codec} [encoding] the encoding function to use. */ -sjcl.misc.hmac.prototype.encrypt = sjcl.misc.hmac.prototype.mac = function (data, encoding) { - var w = new (this._hash)(this._baseHash[0]).update(data, encoding).finalize(); +sjcl.misc.hmac.prototype.encrypt = sjcl.misc.hmac.prototype.mac = function (data) { + var w = new (this._hash)(this._baseHash[0]).update(data).finalize(); return new (this._hash)(this._baseHash[1]).update(w).finalize(); }; |