svn commit: r362628 - head/sys/dev/cesa

John Baldwin jhb at FreeBSD.org
Thu Jun 25 20:22:45 UTC 2020


Author: jhb
Date: Thu Jun 25 20:22:44 2020
New Revision: 362628
URL: https://svnweb.freebsd.org/changeset/base/362628

Log:
  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

Modified:
  head/sys/dev/cesa/cesa.c

Modified: head/sys/dev/cesa/cesa.c
==============================================================================
--- head/sys/dev/cesa/cesa.c	Thu Jun 25 20:21:34 2020	(r362627)
+++ head/sys/dev/cesa/cesa.c	Thu Jun 25 20:22:44 2020	(r362628)
@@ -459,6 +459,7 @@ cesa_set_mkey(struct cesa_session *cs, int alg, const 
 		hin[i] = htobe32(hin[i]);
 		hout[i] = htobe32(hout[i]);
 	}
+	explicit_bzero(&auth_ctx, sizeof(auth_ctx));
 }
 
 static int


More information about the svn-src-head mailing list