svn commit: r262319 - in stable: 7/sys/geom/eli 8/sys/geom/eli 9/sys/geom/eli

Xin LI delphij at FreeBSD.org
Sat Feb 22 00:41:04 UTC 2014


Author: delphij
Date: Sat Feb 22 00:41:03 2014
New Revision: 262319
URL: http://svnweb.freebsd.org/changeset/base/262319

Log:
  MFC r261618:
  
  In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
  k_ipad.
  
  Note that the two consumers in geli(4) are not affected by this
  issue because the way the code is constructed and as such, we
  believe there is no security impact with or without this change
  with geli(4)'s usage.
  
  Reported by:	Serge van den Boom <serge vdboom.org>
  Reviewed by:	pjd

Modified:
  stable/9/sys/geom/eli/g_eli_crypto.c
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/7/sys/geom/eli/g_eli_crypto.c
  stable/8/sys/geom/eli/g_eli_crypto.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/8/sys/   (props changed)
  stable/8/sys/geom/   (props changed)

Modified: stable/9/sys/geom/eli/g_eli_crypto.c
==============================================================================
--- stable/9/sys/geom/eli/g_eli_crypto.c	Sat Feb 22 00:30:33 2014	(r262318)
+++ stable/9/sys/geom/eli/g_eli_crypto.c	Sat Feb 22 00:41:03 2014	(r262319)
@@ -265,6 +265,7 @@ g_eli_crypto_hmac_init(struct hmac_ctx *
 	/* Perform inner SHA512. */
 	SHA512_Init(&ctx->shactx);
 	SHA512_Update(&ctx->shactx, k_ipad, sizeof(k_ipad));
+	bzero(k_ipad, sizeof(k_ipad));
 }
 
 void


More information about the svn-src-stable-9 mailing list