summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2014-01-24 15:02:14 +0400
committerWerner Koch <wk@gnupg.org>2014-01-27 14:21:35 +0100
commit5d23e7b9a77421f3ebfda4a84c459a8729f3bb41 (patch)
tree79fc323b0811b2b2b63985ca50da2d447585e99d /cipher
parentf7df906171854b6b6506b82d4fee2c2ebb0327ea (diff)
downloadlibgcrypt-5d23e7b9a77421f3ebfda4a84c459a8729f3bb41.tar.gz
Fix number of blocks passed used in _gcry_rmd160_mixblock
* cipher/rmd160.c (_gcry_rmd160_mixblock): pass 1 to transform -- Currently _gcry_rmd160_mixblock() passes 64 as nblocks to transform() function, while passing only one block of data. This causes acess after the allocated data and tons of errors on each valgrind invokation. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> This fixes commit 50b8c834.
Diffstat (limited to 'cipher')
-rw-r--r--cipher/rmd160.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/rmd160.c b/cipher/rmd160.c
index 1a58ba61..2aba0feb 100644
--- a/cipher/rmd160.c
+++ b/cipher/rmd160.c
@@ -421,7 +421,7 @@ _gcry_rmd160_mixblock ( RMD160_CONTEXT *hd, void *blockof64byte )
{
char *p = blockof64byte;
- transform ( hd, blockof64byte, 64 );
+ transform ( hd, blockof64byte, 1 );
#define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0)
X(0);
X(1);