Browse Source

Merge pull request #342 from galaxyhaxz/shafix

SHA1ProcessMessageBlock bin exact
pull/4/head
galaxyhaxz 8 years ago committed by GitHub
parent
commit
fb18d6ddd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/sha.cpp

4
Source/sha.cpp

@ -82,9 +82,9 @@ void __fastcall SHA1ProcessMessageBlock(SHA1Context *context)
qmemcpy(W, context->buffer, 0x40u);
for(i = 0; i < 64; i++)
for(i = 16; i < 80; i++)
{
W[i+16] = W[i] ^ W[i+2] ^ W[i+8] ^ W[i+13];
W[i] = W[i-16] ^ W[i-14] ^ W[i-8] ^ W[i-3];
}
A = context->state[0];

Loading…
Cancel
Save