diff options
author | friendica <info@friendica.com> | 2013-11-07 23:25:13 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-07 23:25:13 -0800 |
commit | 3a9cbcaf011f5c5d423e1cd99b43442669692129 (patch) | |
tree | d160f11dd97871d94ffe6e6d10ea48ce57eed357 /library/cryptojs/components/pbkdf2-min.js | |
parent | 90ab0d963bf5074643c6f275dbb8595b6c51a03d (diff) | |
download | volse-hubzilla-3a9cbcaf011f5c5d423e1cd99b43442669692129.tar.gz volse-hubzilla-3a9cbcaf011f5c5d423e1cd99b43442669692129.tar.bz2 volse-hubzilla-3a9cbcaf011f5c5d423e1cd99b43442669692129.zip |
Wankers.
Diffstat (limited to 'library/cryptojs/components/pbkdf2-min.js')
-rw-r--r-- | library/cryptojs/components/pbkdf2-min.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/cryptojs/components/pbkdf2-min.js b/library/cryptojs/components/pbkdf2-min.js new file mode 100644 index 000000000..2f0941c5d --- /dev/null +++ b/library/cryptojs/components/pbkdf2-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 b=CryptoJS,a=b.lib,d=a.Base,m=a.WordArray,a=b.algo,q=a.HMAC,l=a.PBKDF2=d.extend({cfg:d.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,b){for(var c=this.cfg,f=q.create(c.hasher,a),g=m.create(),d=m.create([1]),l=g.words,r=d.words,n=c.keySize,c=c.iterations;l.length<n;){var h=f.update(b).finalize(d);f.reset();for(var j=h.words,s=j.length,k=h,p=1;p<c;p++){k=f.finalize(k);f.reset();for(var t=k.words,e=0;e<s;e++)j[e]^=t[e]}g.concat(h); +r[0]++}g.sigBytes=4*n;return g}});b.PBKDF2=function(a,b,c){return l.create(c).compute(a,b)}})(); |