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:
jhb 2020-06-25 20:22:44 +00:00
parent 6f115b32eb
commit b18a24386c

View File

@ -459,6 +459,7 @@ cesa_set_mkey(struct cesa_session *cs, int alg, const uint8_t *mkey, int mklen)
hin[i] = htobe32(hin[i]);
hout[i] = htobe32(hout[i]);
}
explicit_bzero(&auth_ctx, sizeof(auth_ctx));
}
static int