summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files
AgeCommit message (Collapse)AuthorFilesLines
2022-02-17digest: catch configure.ac up with configuregutteridge1-2/+2
2022-02-15digest: fix aliasing bug with gcc 11mcf2-3/+4
gcc 11 with -O2 optimizes away the store of the bit length into the last 8 bytes of the context buffer due to an aliasing violation (stored through uint64_t, retrieved through uint32_t). To fix this, import the NetBSD patch from christos[0] which makes it use memcpy instead. [0] http://cvsweb.netbsd.org/bsdweb.cgi/src/common/lib/libc/hash/sha2/sha2.c.diff?r1=1.12&r2=1.13
2021-10-23digest: match b2sum in terms of capitalizing BLAKE2s/BLAKE2bnia2-4/+4
2021-10-05digest: Remove _POSIX_C_SOURCE. PR pkg/56439nia2-6/+4
2021-09-29digest: correct hash size of blake2snia2-3/+3
2021-09-28digest: Add blake2s hash.nia7-6/+536
2019-01-27Update digest package to version 20190127agc3-16/+16
Remove some gcc-isms in a macro in keccak.c, provided by Erno Palonheimo in PR pkg/53771
2018-11-07Fix build on Tribblix without introducing warnings on NetBSD. Fromschmonz1-5/+3
riastradh@ ("commit!") with help from maya@.
2018-10-06digest: add the BLAKE2b digest.nia9-10/+551
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
2017-07-29#include config.h only if HAVE_CONFIG_H is definedcheusov1-0/+2
2016-03-04Update digest package to 20160304agc4-18/+14
+ remove unnecessary _POSIX_C_SOURCE definitions + fix up explicit_memset usage in sha3.c + bump version to 20160304
2016-03-03Update digest to version 20160216, as proposed on tech-pkg.agc12-128/+1463
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
2013-07-20Use Mt for email addresses.wiz1-2/+2
2013-01-03Regen.dholland1-129/+117
2013-01-03Remove configure test for vprintf, which wasn't even being used, anddholland7-86/+17
configure tests for memset/memcpy, which are standard and haven't needed checking in a long time. This makes the configure script tolerate injection of -Werror. Fix signed/unsigned mismatches in the sha2 and whirlpool code. This package now passes -Wall with gcc45. Bump the package version to 20121220, which is when I made these changes.
2011-11-04Fix segmentation fault of digest(1) on Linux when directorycheusov5-2818/+1652
is passed as an argument or when read error occurs. Update version to 20111104.
2010-01-23Exactly include unistd.h for size_t (at least, need for Haiku).obache5-4/+24
2009-05-09Define int64_t if missing. Should fix PR 41396.joerg3-1/+122
2009-02-09Regen with autoconf 2.63. The endian macro issues on Mac OS X have beenjoerg2-1150/+1613
addressed according to PR 38625.
2008-05-11Bump version to 20080510.joerg2-11/+11
2008-05-11As workaround for PR 38625, rebuild with autoconf 2.61.joerg1-1477/+1060
2008-05-09Fix a bug in the SHA512 implementation that would be triggered if thejoerg1-1/+1
last block has exactly the length of a short fragment. This happened incidently with two files in the NetBSD 4.0 release.
2008-05-09digest-20080509:joerg4-1072/+1496
The tiger hash needs to run at least once through the update function, even for empty input. The fix is different from the patch in PR 36565.
2007-09-21Fully ANSIfy and use size_t and uint32_t in places where u_int was usedjoerg16-149/+91
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-14Don't use u_char when uint8_t are meant. Don't mess with __attribute__,joerg11-66/+70
conditionally use it in the only place it is used. This should fix problems on QNX reported by Sean Boudreau.
2007-08-03Bump version to 20070803 after fixing a crash when generating Tiger hashestnn2-11/+11
2007-08-03Allocate enough storage space to hold a tiger hash. Corrects atnn1-3/+3
segfault caused by writing past the end of the buffer. XXX how do I bump the version of this package?
2007-08-02Include inttypes.h if it exists. Fixes issues on OSF/1 as reportedjoerg6-4/+27
by tnn@.
2007-07-27As reported by tnn@, the old approach to find the byte orderjoerg7-290/+278
doesn't work on HP-UX/Itanium. Use the standard approach using AC_C_BIGENDIAN. Tested by myself on i386, he@ on SPARC and tnn@ on HP-UX.
2007-07-08Include stdint.h to use integer types such as uint32_t.minskim5-4/+24
2007-07-03Make pkgtools/digest cross-compilation ready and actually improvejoerg21-3799/+2804
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-03-12Sync config.{guess,sub} with mk/gnu-configure.joerg2-361/+481
2006-08-29Revert libncompat usage and kill the use of snprintf in whirlpool andjoerg5-61/+56
tiger instead. Also kill bogus NULL pointer handling in both algorithms: passing null pointers as buffers (when len != 0) or context is a serious programming error and should result in a segfault. Bump version to 20060826. OK agc@
2006-03-02Update the digest package to 20060302.agc5-45/+44
Apply Tyler Retzlaff's patches from PR 32323 to make this compile with gcc4.
2006-03-01Update AC_C___ATTRIBUTE__ macro with newer version on Heimdal,joerg2-19/+7
the old one is just bogus and depends on GCC extensions. Unbreaks GCC 4 build.
2005-08-21include digest-types.h so the various {u,}intNN_t types are defined.grant1-0/+2
fixes build on BSD/OS. from T. M. Pederson in PR pkg/31024.
2005-07-31Update digest to version 20050731:agc4-410/+833
Pull in a patch from Vsevolod Stakhov via FreeBSD: Because that the 55-bytes input-message becomes just 64 bytes block after `the message terminator code(0x80)' and `size-field(8-bytes field)' are added. Perhaps, I think the block of a lot of one be made at this time. Fixes PR 30857
2005-03-24Include stdint.h because uint32_t is used. Makes the package build onminskim1-0/+7
Linux again.
2005-03-23fix a memory leak.yamt1-2/+4
2005-03-23Update digest to version 20050323. The whirlpool digest algorithm wasagc7-21/+2019
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-22Bump date for tiger. > -> \*[Gt]wiz1-3/+3
2005-03-22Add support for the tiger algorithm to digest.agc8-11/+869
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.
2004-12-15update config.{sub,guess} to fix build on newer platforms such asgrant2-235/+476
DragonFly. part of PR pkg/28579 from Todd Willey. thanks!
2004-03-28add missing DESCR to DISTFILES.grant1-2/+2
2004-03-28sync with ../DESCRgrant1-5/+2
2003-07-24Fix the usage line. Addresses PR pkg/22207.atatat1-3/+4
2003-07-20Remove AC_FUNC_MALLOC: there is no need to check for a compatible GNU mallocseb2-221/+4
as there is no call to malloc(0) in this code. As a side effect, need to explicitly add a check for <stdlib.h>.
2003-06-23Only need to #include <digest-types.h> once. Discovered during syncatatat1-4/+2
with bootstrap-pkgsrc/digest.
2003-06-16Redde Caesari quae sunt Caesaris...seb4-7/+5
2003-06-16A function that is declared to return an int *really ought to do do*.atatat1-2/+4
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.