[*] the s member is a u64[] - dont apply 8x modifier to the read index (doesnt apply to write)

This commit is contained in:
Reece Wilson 2022-10-04 13:25:56 +01:00
parent 051db40a1c
commit 278a128834
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ namespace Aurora::Hashing
return {};
}
return AuMemoryViewRead(this->state_.sha3.s, this->state_.sha3.s + (8 * this->state_.sha3.word_index));
return AuMemoryViewRead(this->state_.sha3.s, &this->state_.sha3.s[this->state_.sha3.word_index]);
}
case EHashType::eTiger:

View File

@ -27,7 +27,7 @@ namespace Aurora::Parse
(unsigned long)length,
AuReinterpretCast<unsigned char *>(&decoded[0]),
&length,
BASE32_RFC4648);
BASE32_RFC4648);
if (iRet != CRYPT_OK)
{
return false;