Home
last modified time | relevance | path

Searched refs:binarray (Results 1 – 4 of 4) sorted by relevance

/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/
Dcrypto-sha1.js171 function binb2hex(binarray) argument
175 for(var i = 0; i < binarray.length * 4; i++)
177 str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +
178 hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);
186 function binb2b64(binarray) argument
190 for(var i = 0; i < binarray.length * 4; i += 3)
192 var triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16)
193 | (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 )
194 | ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF);
197 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
Dcrypto-md5.js225 function binl2hex(binarray) argument
229 for(var i = 0; i < binarray.length * 4; i++)
231 str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
232 hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
240 function binl2b64(binarray) argument
244 for(var i = 0; i < binarray.length * 4; i += 3)
246 var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
247 | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
248 | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
251 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
Dcrypto-sha1.js171 function binb2hex(binarray) argument
175 for(var i = 0; i < binarray.length * 4; i++)
177 str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +
178 hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);
186 function binb2b64(binarray) argument
190 for(var i = 0; i < binarray.length * 4; i += 3)
192 var triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16)
193 | (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 )
194 | ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF);
197 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
Dcrypto-md5.js225 function binl2hex(binarray) argument
229 for(var i = 0; i < binarray.length * 4; i++)
231 str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
232 hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
240 function binl2b64(binarray) argument
244 for(var i = 0; i < binarray.length * 4; i += 3)
246 var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
247 | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
248 | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
251 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;