[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-146-gd7c7453

by Jussi Kivilinna cvs at cvs.gnupg.org
Sun Jan 4 14:58:46 CET 2015


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  d7c7453cf5e6b8f3c6b522a30e680f844a28c9de (commit)
      from  8eabecc883332156adffc1df42d27f614c157e06 (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 d7c7453cf5e6b8f3c6b522a30e680f844a28c9de
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date:   Fri Jan 2 19:07:24 2015 +0200

    rmd160: restore native-endian store in _gcry_rmd160_mixblock
    
    * cipher/rmd160.c (_gcry_rmd160_mixblock): Store result to buffer in
    native-endianess.
    --
    
    Commit 4515315f61fbf79413e150fbd1d5f5a2435f2bc5 unintendedly changed this
    native-endian store to little-endian.
    
    Reported-by: Yuriy Kaminskiy <yumkam at gmail.com>
    Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>

diff --git a/cipher/rmd160.c b/cipher/rmd160.c
index 2b1f321..2695db2 100644
--- a/cipher/rmd160.c
+++ b/cipher/rmd160.c
@@ -403,15 +403,16 @@ transform ( void *c, const unsigned char *data, size_t nblks )
  * Apply the rmd160 transform function on the buffer which must have
  * a length 64 bytes. Do not use this function together with the
  * other functions, use rmd160_init to initialize internal variables.
- * Returns: 16 bytes in buffer with the mixed contentes of buffer.
+ * Buffer must be 32-bit aligned.
+ * Returns: 20 bytes in buffer with the mixed contents of buffer.
  */
 void
 _gcry_rmd160_mixblock ( RMD160_CONTEXT *hd, void *blockof64byte )
 {
-  char *p = blockof64byte;
+  u32 *p = blockof64byte;
 
   transform ( hd, blockof64byte, 1 );
-#define X(a) do { buf_put_le32(p, hd->h##a); p += 4; } while(0)
+#define X(a) do { p[a] = hd->h##a; } while(0)
   X(0);
   X(1);
   X(2);

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

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


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list