Hi,
This is using nsz's stripped down md5 implementation
based on rfc1321 and libtomcrypt.
I will send a patch incrementally at some point
to implement the -c option.
Thanks,
stateless
>From ac8a2f508ca8cc5e66ee8b81b0ff4d16196e1dee Mon Sep 17 00:00:00 2001
From: stateless
Date: Wed, 19 Jun 2013
Hi,
Added sha1sum(1) based on nsz's stripped down version
of libtomcrypt from http://port70.net/~nsz/crypt/.
Thanks,
stateless
>From a1714a24098fe363fc244f28e07ab0cd0814de2e Mon Sep 17 00:00:00 2001
From: stateless
Date: Thu, 4 Jul 2013 12:14:14 +0100
Subject: [PATCH] Add sha1sum
No support for
Galos, David:
The types array stood out to me as a bit of a code smell.
After pondering over it for a couple of minutes, I realized
that you could just do this:
type = argv[1][0] == 'b' ? S_IFBLK : S_IFCHR;
type = ((argv[1][0] == 'b') ? S_IFBLK : S_IFCHR)
On 7/4/13, sin wrote:
> Hi,
>
> Added sha1sum(1) based on nsz's stripped down version
> of libtomcrypt from http://port70.net/~nsz/crypt/.
It's "SHA-1", not "SH1".
sha1sum.c is very similar to md5sum.c; ideally, more of the common
code between those programs would be in a library routine.
Robe
On Thu, Jul 04, 2013 at 12:34:14PM +, Robert Ransom wrote:
> On 7/4/13, sin wrote:
> > Hi,
> >
> > Added sha1sum(1) based on nsz's stripped down version
> > of libtomcrypt from http://port70.net/~nsz/crypt/.
>
> It's "SHA-1", not "SH1".
Oops, that's a typo - thanks for spotting. Will re-sen
Hi,
Added sha1sum(1) based on nsz's stripped down version
of libtomcrypt from http://port70.net/~nsz/crypt/.
No support for -c at the moment.
Thanks,
stateless
>From 71ffbed273a508345c5f4771c50892a4fcf4b057 Mon Sep 17 00:00:00 2001
From: stateless
Date: Thu, 4 Jul 2013 12:14:14 +0100
Subject:
On 2013-07-04, at 14:12, Bjartur Thorlacius wrote:
>> type = argv[1][0] == 'b' ? S_IFBLK : S_IFCHR;
> type = ((argv[1][0] == 'b') ? S_IFBLK : S_IFCHR)
Yes, David did the commit with parens around the test. Not around the elvis
operator, though.
-Truls