changeset 11688:ff764624fbc9

6920699 The bzero in arcfour_hmac_md5_encrypt() should also be applied to arcfour_hmac_md5_decrypt()
author Peter Shoults <Peter.Shoults@Sun.COM>
date Thu, 18 Feb 2010 12:22:26 -0500
parents cc1636058569
children ac2c63b73009
files usr/src/uts/common/io/cryptmod.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/cryptmod.c	Thu Feb 18 09:56:44 2010 -0700
+++ b/usr/src/uts/common/io/cryptmod.c	Thu Feb 18 12:22:26 2010 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
  * STREAMS Crypto Module
@@ -1761,6 +1761,8 @@
 	crypto_mechanism_t mech;
 	int usage;
 
+	bzero(&indata, sizeof (indata));
+
 	/* The usage constant is 1026 for all "old" rcmd mode operations */
 	if (tmi->dec_data.option_mask & CRYPTOPT_RCMD_MODE_V1)
 		usage = RCMDV1_USAGE;