diff options
author | Peter Shoults <Peter.Shoults@Sun.COM> | 2010-02-18 12:22:26 -0500 |
---|---|---|
committer | Peter Shoults <Peter.Shoults@Sun.COM> | 2010-02-18 12:22:26 -0500 |
commit | 35e10258ba32a30135d21a0eb501bb007e682004 (patch) | |
tree | bc0a036620dd853436744324c74fd6cb22bebe5b /usr/src | |
parent | 31dd2c848f40e3aba523a7d65034e364ca1f67f0 (diff) | |
download | illumos-joyent-35e10258ba32a30135d21a0eb501bb007e682004.tar.gz |
6920699 The bzero in arcfour_hmac_md5_encrypt() should also be applied to arcfour_hmac_md5_decrypt()
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/cryptmod.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/cryptmod.c b/usr/src/uts/common/io/cryptmod.c index 6a850b8308..ad6c5fb2f0 100644 --- a/usr/src/uts/common/io/cryptmod.c +++ b/usr/src/uts/common/io/cryptmod.c @@ -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 @@ arcfour_hmac_md5_decrypt(queue_t *q, struct tmodinfo *tmi, mblk_t *mp, 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; |