mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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:
parent
11a299a793
commit
c0507fba25
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user