Home GnuPG

gostr3411-94: Fix the iteration count for length filling loop.
05dc5bcd2349Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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@gmail.com>

Details

Provenance
lumagAuthored on Dec 28 2014, 10:05 AM
wernerCommitted on Jan 6 2015, 2:57 PM
Parents
rCe6996fe55685: build: Add a commit-msg git-hook script.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC05dc5bcd2349: gostr3411-94: Fix the iteration count for length filling loop. (authored by Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>).Jan 6 2015, 2:57 PM