1 line
57 KiB
Plaintext
1 line
57 KiB
Plaintext
|
(function(){var p=8,t="",r=0,q=function(y,x){this.highOrder=y;this.lowOrder=x},s=function(z){var x=[],y=(1<<p)-1,B=z.length*p,A;for(A=0;A<B;A+=p){x[A>>5]|=(z.charCodeAt(A/p)&y)<<(32-p-(A%32))}return x},d=function(y){var x=[],B=y.length,A,z;for(A=0;A<B;A+=2){z=parseInt(y.substr(A,2),16);if(!isNaN(z)){x[A>>3]|=z<<(24-(4*(A%8)))}else{return"INVALID HEX STRING"}}return x},g=function(y){var x=(r)?"0123456789ABCDEF":"0123456789abcdef",C="",B=y.length*4,A,z;for(A=0;A<B;A+=1){z=y[A>>2]>>((3-(A%4))*8);C+=x.charAt((z>>4)&15)+x.charAt(z&15)}return C},k=function(y){var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="",B=y.length*4,A,z,C;for(A=0;A<B;A+=3){C=(((y[A>>2]>>8*(3-A%4))&255)<<16)|(((y[A+1>>2]>>8*(3-(A+1)%4))&255)<<8)|((y[A+2>>2]>>8*(3-(A+2)%4))&255);for(z=0;z<4;z+=1){if(A*8+z*6<=y.length*32){D+=x.charAt((C>>6*(3-z))&63)}else{D+=t}}}return D},h=function(y,z){if(z<=32){return new q((y.highOrder>>>z)|(y.lowOrder<<(32-z)),(y.lowOrder>>>z)|(y.highOrder<<(32-z)))}else{return new q((y.lowOrder>>>z)|(y.highOrder<<(32-z)),(y.highOrder>>>z)|(y.lowOrder<<(32-z)))}},o=function(y,z){if(z<=32){return new q(y.highOrder>>>z,y.lowOrder>>>z|(y.highOrder<<(32-z)))}else{return new q(0,y.highOrder<<(32-z))}},i=function(A,C,B){return new q((A.highOrder&C.highOrder)^(~A.highOrder&B.highOrder),(A.lowOrder&C.lowOrder)^(~A.lowOrder&B.lowOrder))},c=function(A,C,B){return new q((A.highOrder&C.highOrder)^(A.highOrder&B.highOrder)^(C.highOrder&B.highOrder),(A.lowOrder&C.lowOrder)^(A.lowOrder&B.lowOrder)^(C.lowOrder&B.lowOrder))},m=function(y){var z=h(y,28),B=h(y,34),A=h(y,39);return new q(z.highOrder^B.highOrder^A.highOrder,z.lowOrder^B.lowOrder^A.lowOrder)},j=function(z){var A=h(z,14),y=h(z,18),B=h(z,41);return new q(A.highOrder^y.highOrder^B.highOrder,A.lowOrder^y.lowOrder^B.lowOrder)},v=function(y){var z=h(y,1),A=h(y,8),B=o(y,7);return new q(z.highOrder^A.highOrder^B.highOrder,z.lowOrder^A.lowOrder^B.lowOrder)},u=function(y){var z=h(y,19),B=h(y,61),A=o(y,6);return new q(z.highOrder^B.highOrder^A.highOrder,z.lowOrder^B.lowOrder^A.lowOrder)},e=function(z,E){var A,B,D,C;A=(z.lowOrder&65535)+(E.lowOrder&65535);B=(z.lowOrder>>>16)+(E.lowOrder>>>16)+(A>>>16);D=((B&65535)<<16)|(A&65535);A=(z.highOrder&65535)+(E.highOrder&65535)+(B>>>16);B=(z.highOrder>>>16)+(E.highOrder>>>16)+(A>>>16);C=((B&65535)<<16)|(A&65535);return new q(C,D)},b=function(y,x,E,D){var B,z,C,A;B=(y.lowOrder&65535)+(x.lowOrder&65535)+(E.lowOrder&65535)+(D.lowOrder&65535);z=(y.lowOrder>>>16)+(x.lowOrder>>>16)+(E.lowOrder>>>16)+(D.lowOrder>>>16)+(B>>>16);C=((z&65535)<<16)|(B&65535);B=(y.highOrder&65535)+(x.highOrder&65535)+(E.highOrder&65535)+(D.highOrder&65535)+(z>>>16);z=(y.highOrder>>>16)+(x.highOrder>>>16)+(E.highOrder>>>16)+(D.highOrder>>>16)+(B>>>16);A=((z&65535)<<16)|(B&65535);return new q(A,C)},a=function(E,D,C,B,A){var z,y,x,F;z=(E.lowOrder&65535)+(D.lowOrder&65535)+(C.lowOrder&65535)+(B.lowOrder&65535)+(A.lowOrder&65535);y=(E.lowOrder>>>16)+(D.lowOrder>>>16)+(C.lowOrder>>>16)+(B.lowOrder>>>16)+(A.lowOrder>>>16)+(z>>>16);x=((y&65535)<<16)|(z&65535);z=(E.highOrder&65535)+(D.highOrder&65535)+(C.highOrder&65535)+(B.highOrder&65535)+(A.highOrder&65535)+(y>>>16);y=(E.highOrder>>>16)+(D.highOrder>>>16)+(C.highOrder>>>16)+(B.highOrder>>>16)+(A.highOrder>>>16)+(z>>>16);F=((y&65535)<<16)|(z&65535);return new q(F,x)},f=function(G,F,E){var S,R,Q,P,O,N,M,J,D,B,z,L,I,A,y,x=[],C;if(E==="SHA-384"||E==="SHA-512"){L=(((F+128)>>10)<<5)+31;y=[new q(1116352408,3609767458),new q(1899447441,602891725),new q(3049323471,3964484399),new q(3921009573,2173295548),new q(961987163,4081628472),new q(1508970993,3053834265),new q(2453635748,2937671579),new q(2870763221,3664609560),new q(3624381080,2734883394),new q(310598401,1164996542),new q(607225278,1323610764),new q(1426881987,3590304994),new q(1925078388,4068182383),new q(2162078206,991336113),new q(2614888103,633803317),new q(3248222580,3479774868),new q(3835390401,2666613458),new q(4022224774,944711139),new q(264347078,2341262773),new q(604807628,2007800933),new q(770255983,1495990901),new q(1249150122,1856431235),new q(1555081692,3
|