fix repeating 0

This commit is contained in:
JohnnyCena123 2025-10-13 21:05:26 +03:00
parent 0cdf09cc9a
commit 63d4bf03d4

View File

@ -3109,13 +3109,13 @@ unsigned int *ComputeSHA256(unsigned char *data, int dataSize)
static unsigned int hash[8]; static unsigned int hash[8];
hash[0] = 0x6A09e667; hash[0] = 0x6A09e667;
hash[0] = 0xbb67ae85; hash[1] = 0xbb67ae85;
hash[0] = 0x3c6ef372; hash[2] = 0x3c6ef372;
hash[0] = 0xa54ff53a; hash[3] = 0xa54ff53a;
hash[0] = 0x510e527f; hash[4] = 0x510e527f;
hash[0] = 0x9b05688c; hash[5] = 0x9b05688c;
hash[0] = 0x1f83d9ab; hash[6] = 0x1f83d9ab;
hash[0] = 0x5be0cd19; hash[7] = 0x5be0cd19;
unsigned long long const bitLen = dataSize*8; unsigned long long const bitLen = dataSize*8;
unsigned long long paddedSize = dataSize + sizeof(dataSize); unsigned long long paddedSize = dataSize + sizeof(dataSize);