Update blake2s.h

Changed 

state->t[0] = 0;
state->t[1] = 0;

To

memset(state->t, 0, sizeof(state->t));
memset(state->f, 0, sizeof(state->f));
This commit is contained in:
Juno 2024-09-26 11:15:19 +03:00 committed by GitHub
parent 11a299a793
commit c0507fba25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,10 +54,8 @@ static inline void __blake2s_init(struct blake2s_state *state, size_t outlen,
state->h[5] = BLAKE2S_IV5; state->h[5] = BLAKE2S_IV5;
state->h[6] = BLAKE2S_IV6; state->h[6] = BLAKE2S_IV6;
state->h[7] = BLAKE2S_IV7; state->h[7] = BLAKE2S_IV7;
state->t[0] = 0; memset(state->t, 0, sizeof(state>t));
state->t[1] = 0; memset(state->f, 0, sizeof(state>f));
state->f[0] = 0;
state->f[1] = 0;
state->buflen = 0; state->buflen = 0;
state->outlen = outlen; state->outlen = outlen;
if (keylen) { if (keylen) {