Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Binary: cache/js-dbg-32-7d06dac3fe83-linux |
michael@0 | 2 | // Flags: -j |
michael@0 | 3 | // |
michael@0 | 4 | function partOfSHA1(str) |
michael@0 | 5 | { |
michael@0 | 6 | var rotate_left = function (n,s) { return ( n<<s ) | (n>>>(32-s)); }, |
michael@0 | 7 | W = [], H0 = 0x67452301, |
michael@0 | 8 | H1 = 0xEFCDAB89, H2 = 0x98BADCFE, |
michael@0 | 9 | H3 = 0x10325476, H4 = 0xC3D2E1F0, |
michael@0 | 10 | A, B, C, D, E, temp, str_len = str.length, |
michael@0 | 11 | word_array = []; |
michael@0 | 12 | i = 0x080000000; |
michael@0 | 13 | word_array.push( (str_len<<3)&0x0ffffffff ); |
michael@0 | 14 | for ( blockstart=0; blockstart<word_array.length; blockstart+=16 ) { |
michael@0 | 15 | A = H0; |
michael@0 | 16 | B = H1; |
michael@0 | 17 | C = H2; |
michael@0 | 18 | D = H3; |
michael@0 | 19 | E = H4; |
michael@0 | 20 | for (i= 0; i<=19; ++i) { |
michael@0 | 21 | temp = (rotate_left(A,5) + ((B&C) | (~B&D)) + E + W[i] + 0x5A827999) & 0x0ffffffff; |
michael@0 | 22 | E = D; |
michael@0 | 23 | D = C; |
michael@0 | 24 | C = rotate_left(B,30); |
michael@0 | 25 | B = A; |
michael@0 | 26 | A = temp; |
michael@0 | 27 | } |
michael@0 | 28 | } |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | partOfSHA1(1226369254122); |