Commit graph

17 commits

Author SHA1 Message Date
nia
61c7f725de digest: add the BLAKE2b digest.
BLAKE2 is a further development of the SHA-3 finalist BLAKE by its original
authors that improves its performance. BLAKE2b is the variant optimized for
64-bit systems.

ok riastradh
2018-10-06 14:32:45 +00:00
agc
3cefcc036a Update digest to version 20160216, as proposed on tech-pkg.
Changes since previous version:

+ add Taylor Campbell's implementation of SHA3 digests.  This includes
code to calculate 224, 256, 384 and 512bit length digests.

+ change the license on all the code I wrote to be 2-clause BSD

+ modify license years for things that have been changed

+ add self-test command line option to digest(1) via the -t switch

pkgsrc changes

+ derive version number for the package automatically from the source
code
2016-03-03 22:11:07 +00:00
joerg
f60512c785 Fully ANSIfy and use size_t and uint32_t in places where u_int was used
before. This fixes the build on QNX, where u_int is not exposed by the
current set of headers. Make the prototypes of the crypto functions
consistent.
2007-09-21 18:44:36 +00:00
joerg
66a0cbeee0 Don't use u_char when uint8_t are meant. Don't mess with __attribute__,
conditionally use it in the only place it is used. This should fix
problems on QNX reported by Sean Boudreau.
2007-09-14 08:12:29 +00:00
tnn
155170f318 Allocate enough storage space to hold a tiger hash. Corrects a
segfault caused by writing past the end of the buffer.
XXX how do I bump the version of this package?
2007-08-03 17:10:07 +00:00
joerg
b1a42ef8c2 Make pkgtools/digest cross-compilation ready and actually improve
portability somewhat:
- consistently use POSIX uint{8,16,32,64}_t throughout the code.
- asssume for now that the compiler supports ULL as suffix
- use AC_TYPE_UINT{8,16,32,64}_T instead of bits.c to compute
  possible replacement types.

Bump to 20070703. Tested by Thorsten Glaser on Interix and tnn@ on
Solaris.
2007-07-03 18:54:02 +00:00
yamt
d64f41391e fix a memory leak. 2005-03-23 21:40:35 +00:00
agc
185921b533 Update digest to version 20050323. The whirlpool digest algorithm was
added in this version, taken from the reference code from the NESSIE
project. Passes regression test suite on NetBSD/{i386,sparc64} and
also on SunOS 5.9 sparc (thanks, Jonathan).
2005-03-23 14:32:19 +00:00
agc
0efe6ebb73 Add support for the tiger algorithm to digest.
Bump version to 20050310.

The cabal known as the cryptographers might like to have a look at the
first two results in test 6 of the regression tests.
2005-03-22 10:16:15 +00:00
atatat
677c3a74db Fix the usage line. Addresses PR pkg/22207. 2003-07-24 00:27:09 +00:00
atatat
49758757d0 A function that is declared to return an int *really ought to do do*.
I expect that since all possible code paths through this function did,
as their last step, an assignment of what was to be the return value,
that the registers somehow ended up nicely arranged after we fell out
of the bottom of the function.

But it's still better just to return a value.
2003-06-16 13:35:22 +00:00
atatat
99b76b3894 Reword the guts of digest so that the entry points into the various
hashes (fooInit(), fooUpdate(), fooFinal(), and fooFile()) are in the
array of structs that list the digests we support.

This makes the code somewhat simpler, easier to patch, and makes it
much easier to add new algorithms.

Note that since this *only* changes the inner workings of the digest
program, we don't need to touch the version number.

Approved (finally) by agc.  :)
2003-06-15 00:42:29 +00:00
schmonz
9ded3433a9 "Import" autoconf'd digest source from othersrc/bootstrap-pkgsrc/digest
into ${FILESDIR}. (Using autoconf greatly simplifies maintenance
of this package across multiple platforms.) Copy the sources into
${WRKSRC} during "do-extract". We automagically determine VERSION
by inspecting ${FILESDIR}/configure.

USE_BUILDLINK2=no because this is a pkgsrc bootstrap tool.
2002-12-21 04:06:10 +00:00
wiz
5fda8f604d Add some `\n' in error messages, per pkg/13650 by Stoned Elipot.
Bump to 20010807.
2001-08-07 22:14:52 +00:00
hubertf
59758216a2 Get rid of BSD err() and warn() functions - for great just^Wportability! 2001-07-09 21:42:30 +00:00
agc
6fed36d326 Add sha256, sha384 and sha512 digest algorithms, with BSD-licenced
code from Aaron Gifford.

Bump version number to 20010307

Simplify the manual page installation:

+ remove the :D.gz modifier from the manual page installation commands.
It's not necessary, as bsd.pkg.mk works out whether the manual page
is gzipped or not

+ just use the make(1) :M modifier to work out
whether catinstall and maninstall are set in ${MANINSTALL}
2001-03-12 09:08:40 +00:00
agc
f29caca16e Import of a small utility, which calculates message digests, into the
NetBSD packages collection.

At the current time, this utility calculates md5, sha1 and rmd160
message digests, but is designed to be extensible, so that other
algorithms can be added easily, if and when they appear.

The utility outputs digests in the same format as md5(1) in basesrc.

It is designed to be small, and to be linked statically.
2001-03-06 11:21:04 +00:00