mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 18:09:48 +00:00
Modify BLAKE2_State ctor to initialize each member except buffer[]
This commit is contained in:
parent
abcec10b29
commit
ca9690312b
4
blake2.h
4
blake2.h
@ -166,7 +166,9 @@ struct CRYPTOPP_NO_VTABLE BLAKE2_State
|
||||
BLAKE2_State()
|
||||
{
|
||||
// Set all members except scratch buffer[]
|
||||
memset(this, 0x00, sizeof(*this)-sizeof(buffer));
|
||||
h[0]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7] = 0;
|
||||
t[0]=t[1]=f[0]=f[1] = 0;
|
||||
length = 0;
|
||||
}
|
||||
|
||||
// SSE2 and SSE4 depend upon t[] and f[] being side-by-side
|
||||
|
Loading…
Reference in New Issue
Block a user