//>>built
define("dojox/encoding/digests/_sha2",[],function(){return function(a,f,l,h){function k(b,c){c=c||a.outputTypes.Base64;var d=a.digest(a.toWord(b),8*b.length,h,f);switch(c){case a.outputTypes.Raw:return d;case a.outputTypes.Hex:return a.toHex(d);case a.outputTypes.String:return a._toString(d);default:return a.toBase64(d)}}k.hmac=function(b,c,d){d=d||a.outputTypes.Base64;var g=a.toWord(c);16<g.length&&(g=a.digest(g,8*c.length,h,f));var m=l/32,n=Array(m);c=Array(m);for(var e=0;e<m;e++)n[e]=g[e]^909522486,
c[e]=g[e]^1549556828;b=a.digest(n.concat(a.toWord(b)),l+8*b.length,h,f);b=a.digest(c.concat(b),l+f,h,f);switch(d){case a.outputTypes.Raw:return b;case a.outputTypes.Hex:return a.toHex(b);case a.outputTypes.String:return a._toString(b);default:return a.toBase64(b)}};k._hmac=k.hmac;return k}});