[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-157-ge4de523
by Dmitry Eremin-Solenikov
cvs at cvs.gnupg.org
Tue Jan 6 15:04:33 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 e4de52378a85cf383994ded8edf0d5cf98dcb10c (commit)
via 05dc5bcd234909ae9c9366b653346076b9a834ed (commit)
from e6996fe55685f8042a846b465e0d0c097d615086 (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 e4de52378a85cf383994ded8edf0d5cf98dcb10c
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Date: Sun Dec 28 12:15:33 2014 +0300
stribog: Reduce table size to the needed one.
* cipher/stribog.c (C16): Avoid allocating superfluous space.
--
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
diff --git a/cipher/stribog.c b/cipher/stribog.c
index 942bbf4..de167a7 100644
--- a/cipher/stribog.c
+++ b/cipher/stribog.c
@@ -1080,7 +1080,7 @@ static const u64 stribog_table[8][256] =
U64_C(0x72d14d3493b2e388), U64_C(0xd6a30f258c153427) },
};
-static const u64 C16[13][16] =
+static const u64 C16[12][8] =
{
{ U64_C(0xdd806559f2a64507), U64_C(0x05767436cc744d23),
U64_C(0xa2422a08a460d315), U64_C(0x4b7ce09192676901),
commit 05dc5bcd234909ae9c9366b653346076b9a834ed
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Date: Sun Dec 28 12:05:43 2014 +0300
gostr3411-94: Fix the iteration count for length filling loop.
* cipher/gostr3411-94.c (gost3411_final): Fix loop
--
The maximum iteration count for filling the l (bit length) array was
incrrectly set to 32 (missed that in u8->u32 refactoring). This was
not resulting in stack corruption, since nblocks variable would be
exausted earlier compared to 8 32-bit values (the size of the array).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
diff --git a/cipher/gostr3411-94.c b/cipher/gostr3411-94.c
index 91e5b4c..7b16e61 100644
--- a/cipher/gostr3411-94.c
+++ b/cipher/gostr3411-94.c
@@ -307,7 +307,7 @@ gost3411_final (void *context)
l[0] |= nblocks << 8;
nblocks >>= 24;
- for (i = 1; i < 32 && nblocks != 0; i++)
+ for (i = 1; i < 8 && nblocks != 0; i++)
{
l[i] = nblocks;
nblocks >>= 24;
-----------------------------------------------------------------------
Summary of changes:
cipher/gostr3411-94.c | 2 +-
cipher/stribog.c | 2 +-
2 files changed, 2 insertions(+), 2 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