[*] Reset hashstream lock state on import/reset
This commit is contained in:
parent
d0c4d8cb33
commit
24fc2fd90d
@ -210,6 +210,7 @@ namespace Aurora::Hashing
|
||||
|
||||
bool HashStream::Import(const Memory::MemoryViewRead &view)
|
||||
{
|
||||
this->finished_ = false;
|
||||
|
||||
#define ADD_IMPORT(name) \
|
||||
if (sizeof(this->state_.name.state) != view.length) \
|
||||
@ -267,6 +268,7 @@ namespace Aurora::Hashing
|
||||
|
||||
void HashStream::Init()
|
||||
{
|
||||
this->finished_ = false;
|
||||
AuMemset(&this->state_, 0, sizeof(this->state_));
|
||||
|
||||
switch (this->type_)
|
||||
|
Loading…
Reference in New Issue
Block a user