[git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-11-gbf6d5b1

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Nov 1 06:38:50 CET 2016

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  bf6d5b10cb4173826f47ac080506b68bb001acb2 (commit)
      from  bfd732f53a9b5dfe14217a68a0fa289bf6913ec0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bf6d5b10cb4173826f47ac080506b68bb001acb2
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Nov 1 14:34:16 2016 +0900

    cipher: Fix IDEA cipher for clearing memory.
    * cipher/idea.c (invert_key): Use wipememory, since this kind of memset
    may be removed by compiler optimization.
    Reported-by: Zhaomo Yang and Brian Johannesmeyer
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/cipher/idea.c b/cipher/idea.c
index 14234cf..ffe821d 100644
--- a/cipher/idea.c
+++ b/cipher/idea.c
@@ -152,7 +152,7 @@ invert_key( u16 *ek, u16 dk[IDEA_KEYLEN] )
     *--p = t2;
     *--p = t1;
     memcpy(dk, temp, sizeof(temp) );
-    memset(temp, 0, sizeof(temp) );  /* burn temp */
+    wipememory(temp, sizeof(temp));


Summary of changes:
 cipher/idea.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

The GNU crypto library

Gnupg-commits mailing list
Gnupg-commits at gnupg.org

More information about the Gcrypt-devel mailing list