Home GnuPG

Separate common md block code
ecde77ad9869Unpublished

Unpublished Commit · Learn More

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

Description

Separate common md block code

* cipher/hash-common.c (_gcry_md_block_write): New function to handle
block md operations.  The current implementation is limited to 64 byte
buffer and u32 block counter.
* cipher/md4.c, cipher/md5.c, cipher/rmd.h, cipher/rmd160.c
*cipher/sha1.c, cipher/sha256.c, cipher/tiger.c: Convert to use
_gcry_md_block_write.

Whirlpool and SHA512 are left as before, as SHA512 uses 128 bytes buffer
and u64 blocks counter and Whirlpool does not have trivial block handling
structure.

Indentation changes, minor edits and adjustment of
_gcry_sha1_hash_buffers by wk.

  • Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

Details

Provenance
lumagAuthored on Sep 18 2013, 1:50 PM
wernerCommitted on Sep 18 2013, 2:19 PM
Parents
rC56b5949f71f5: Add limited implementation of GOST 28147-89 cipher
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCecde77ad9869: Separate common md block code (authored by Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>).Sep 18 2013, 2:19 PM