diff options
author | Mike Hamburg <github@shiftleft.org> | 2012-11-24 13:25:22 -0800 |
---|---|---|
committer | Mike Hamburg <github@shiftleft.org> | 2012-11-24 13:25:22 -0800 |
commit | f09fccc04f8bbac78f459819471fdbd90799e9b4 (patch) | |
tree | 196a244bec0c4c226212e84075d5f6c8ac0d2a06 /core | |
parent | ae889f7c2d76a03ab8fc1ee7ad0058e4f94e2d71 (diff) | |
download | sjcl-origin/version-0.8.zip sjcl-origin/version-0.8.tar.gz sjcl-origin/version-0.8.tar.bz2 |
remove encoding from HMACorigin/version-0.8
Diffstat (limited to 'core')
-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(); }; |