Explicitly zero the temporary auth context used to generate HMAC state.
Reviewed by: delphij Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25439
This commit is contained in:
parent
347c369294
commit
9b6dc28176
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362628
@ -459,6 +459,7 @@ cesa_set_mkey(struct cesa_session *cs, int alg, const uint8_t *mkey, int mklen)
|
|||||||
hin[i] = htobe32(hin[i]);
|
hin[i] = htobe32(hin[i]);
|
||||||
hout[i] = htobe32(hout[i]);
|
hout[i] = htobe32(hout[i]);
|
||||||
}
|
}
|
||||||
|
explicit_bzero(&auth_ctx, sizeof(auth_ctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user