INNER CODE UNIT · JavaScript
i
norkator/cryptography · src/cryptography/other/hmac/IPM.js:69
case 3: i = msg.charCodeAt(msg_len - 3) << 24 | msg.charCodeAt(msg_len-2) << 16 | msg.charCodeAt(msg_len - 1) << 8 | 0x80; break;
}
word_array.push( i );
while((word_array.length % 16) != 14) word_array.push( 0 );
word_array.push(msg_len >>> 29);
word_array.push((msg_len << 3) & 0x0ffffffff);
for(blockstart = 0; blockstart < word_array.length; blockstart += 16 )
{
for( i=0; i<16; i++ ) W[i] = word_array[blockstart + i];
for( i=16; i<=79; i++ ) W[i] = SHA1.rotate_left(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);
A = H0; B = H1; C = H2; D = H3; E = H4;
for(i= 0; i <= 19; i++)
{