[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Mon Jun 20 13:43:29 UTC 2016


The branch master has been updated
       via  b88e95f3a0bbe4656697c6af4023c5848f93081a (commit)
      from  fb0303f3ce713d1aad72b6711cc96a6cb5120d82 (commit)


- Log -----------------------------------------------------------------
commit b88e95f3a0bbe4656697c6af4023c5848f93081a
Author: Kurt Cancemi <kurt at x64architecture.com>
Date:   Sat May 28 07:05:15 2016 -0400

    crypto/evp/e_aes_cbc_hmac_sha256.c: Remove spurious memset
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/1231)

-----------------------------------------------------------------------

Summary of changes:
 crypto/evp/e_aes_cbc_hmac_sha256.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/crypto/evp/e_aes_cbc_hmac_sha256.c b/crypto/evp/e_aes_cbc_hmac_sha256.c
index b89d873..3b9cdf4 100644
--- a/crypto/evp/e_aes_cbc_hmac_sha256.c
+++ b/crypto/evp/e_aes_cbc_hmac_sha256.c
@@ -81,10 +81,9 @@ static int aesni_cbc_hmac_sha256_init_key(EVP_CIPHER_CTX *ctx,
     int ret;
 
     if (enc)
-        memset(&key->ks, 0, sizeof(key->ks.rd_key)),
-            ret = aesni_set_encrypt_key(inkey,
-                                        EVP_CIPHER_CTX_key_length(ctx) * 8,
-                                        &key->ks);
+        ret = aesni_set_encrypt_key(inkey,
+                                    EVP_CIPHER_CTX_key_length(ctx) * 8,
+                                    &key->ks);
     else
         ret = aesni_set_decrypt_key(inkey,
                                     EVP_CIPHER_CTX_key_length(ctx) * 8,


More information about the openssl-commits mailing list