[PATCH] Add an utility to calculate hashes over a set of files

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Mon Dec 16 18:30:45 CET 2013


On Mon, Dec 16, 2013 at 9:10 PM, Werner Koch <wk at gnupg.org> wrote:
> On Mon, 16 Dec 2013 17:41, dbaryshkov at gmail.com said:
>
>> An utility like rhash that has the ability to calculate different hashes
>> over a set of files it usefull. Add gchash utility to calculate hashes
>> supported by libgcrypt.
>
> I can't see why Libgcrypt needs to provide such a tool.  It is a library
> and applications should provide user interafces.  For example gpg has a
> feature to create digests for all Libgcrypt supported algorithms.

This is mostly used for testing/verification, like mpicalc is. I used that
to check gost hashes implementation (to compare file caches with
hashes generated by other tools). When I had several similar
test programs locally, I thought that libgcrypt can benefit from having
such standalone tool.

> ps.
> Sorry, for rejecting/commenting the 3 patches at a time.

N/p. I got used to that in the kernel world.

-- 
With best wishes
Dmitry



More information about the Gcrypt-devel mailing list