aboutsummaryrefslogtreecommitdiffstats
path: root/library/cryptojs/components/hmac-min.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/cryptojs/components/hmac-min.js')
-rw-r--r--library/cryptojs/components/hmac-min.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/cryptojs/components/hmac-min.js b/library/cryptojs/components/hmac-min.js
new file mode 100644
index 000000000..c1a8974cd
--- /dev/null
+++ b/library/cryptojs/components/hmac-min.js
@@ -0,0 +1,8 @@
+/*
+CryptoJS v3.1.2
+code.google.com/p/crypto-js
+(c) 2009-2013 by Jeff Mott. All rights reserved.
+code.google.com/p/crypto-js/wiki/License
+*/
+(function(){var c=CryptoJS,k=c.enc.Utf8;c.algo.HMAC=c.lib.Base.extend({init:function(a,b){a=this._hasher=new a.init;"string"==typeof b&&(b=k.parse(b));var c=a.blockSize,e=4*c;b.sigBytes>e&&(b=a.finalize(b));b.clamp();for(var f=this._oKey=b.clone(),g=this._iKey=b.clone(),h=f.words,j=g.words,d=0;d<c;d++)h[d]^=1549556828,j[d]^=909522486;f.sigBytes=g.sigBytes=e;this.reset()},reset:function(){var a=this._hasher;a.reset();a.update(this._iKey)},update:function(a){this._hasher.update(a);return this},finalize:function(a){var b=
+this._hasher;a=b.finalize(a);b.reset();return b.finalize(this._oKey.clone().concat(a))}})})();