//>>built
define("dojox/encoding/digests/SHA1",["./_base"],function(f){function l(b,c){b[c>>5]|=128<<24-c%32;b[(c+64>>9<<4)+15]=c;for(var a=Array(80),d=1732584193,h=-271733879,e=-1732584194,k=271733878,m=-1009589776,l=0;l<b.length;l+=16){for(var n=d,q=h,r=e,t=k,u=m,g=0;80>g;g++){if(16>g)a[g]=b[l+g];else{var p=a[g-3]^a[g-8]^a[g-14]^a[g-16];a[g]=p<<1|p>>>31}p=f.addWords(f.addWords(d<<5|d>>>27,20>g?h&e|~h&k:40>g?h^e^k:60>g?h&e|h&k|e&k:h^e^k),f.addWords(f.addWords(m,a[g]),20>g?1518500249:40>g?1859775393:60>g?-1894007588:
-899497514));m=k;k=e;e=h<<30|h>>>2;h=d;d=p}d=f.addWords(d,n);h=f.addWords(h,q);e=f.addWords(e,r);k=f.addWords(k,t);m=f.addWords(m,u)}return[d,h,e,k,m]}function n(b){for(var c=[],a=0,d=8*b.length;a<d;a+=8)c[a>>5]|=(b.charCodeAt(a/8)&255)<<24-a%32;return c}function q(b){for(var c=[],a=0,d=4*b.length;a<d;a++)c.push("0123456789abcdef".charAt(b[a>>2]>>8*(3-a%4)+4&15),"0123456789abcdef".charAt(b[a>>2]>>8*(3-a%4)&15));return c.join("")}function r(b){for(var c=[],a=0,d=32*b.length;a<d;a+=8)c.push(String.fromCharCode(b[a>>
5]>>>24-a%32&255));return c.join("")}function t(b){for(var c=[],a=0,d=4*b.length;a<d;a+=3)for(var f=(b[a>>2]>>8*(3-a%4)&255)<<16|(b[a+1>>2]>>8*(3-(a+1)%4)&255)<<8|b[a+2>>2]>>8*(3-(a+2)%4)&255,e=0;4>e;e++)8*a+6*e>32*b.length?c.push("\x3d"):c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>6*(3-e)&63));return c.join("")}f.SHA1=function(b,c){var a=c||f.outputTypes.Base64,d=l(n(b),8*b.length);switch(a){case f.outputTypes.Raw:return d;case f.outputTypes.Hex:return q(d);
case f.outputTypes.String:return r(d);default:return t(d)}};f.SHA1._hmac=function(b,c,a){a=a||f.outputTypes.Base64;var d=n(c);16<d.length&&(d=l(d,8*c.length));var h=Array(16);c=Array(16);for(var e=0;16>e;e++)h[e]=d[e]^909522486,c[e]=d[e]^1549556828;b=l(h.concat(n(b)),512+8*b.length);b=l(c.concat(b),672);switch(a){case f.outputTypes.Raw:return b;case f.outputTypes.Hex:return q(b);case f.outputTypes.String:return r(b);default:return t(b)}};return f.SHA1});