Zero the temporary HMAC key in hmac_init_pad().
Reviewed by: delphij Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25436
This commit is contained in:
parent
4a711b8d04
commit
17a831ea25
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362625
@ -444,6 +444,7 @@ hmac_init_pad(struct auth_hash *axf, const char *key, int klen, void *auth_ctx,
|
|||||||
|
|
||||||
axf->Init(auth_ctx);
|
axf->Init(auth_ctx);
|
||||||
axf->Update(auth_ctx, hmac_key, axf->blocksize);
|
axf->Update(auth_ctx, hmac_key, axf->blocksize);
|
||||||
|
explicit_bzero(hmac_key, sizeof(hmac_key));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user