| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Remove some gcc-isms in a macro in keccak.c, provided by Erno Palonheimo
in PR pkg/53771
|
|
riastradh@ ("commit!") with help from maya@.
|
|
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
|
|
|
|
+ remove unnecessary _POSIX_C_SOURCE definitions
+ fix up explicit_memset usage in sha3.c
+ bump version to 20160304
|
|
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
|
|
|
|
|
|
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.
|
|
is passed as an argument or when read error occurs.
Update version to 20111104.
|
|
|
|
|
|
addressed according to PR 38625.
|
|
|
|
|
|
last block has exactly the length of a short fragment. This happened
incidently with two files in the NetBSD 4.0 release.
|
|
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.
|
|
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.
|
|
conditionally use it in the only place it is used. This should fix
problems on QNX reported by Sean Boudreau.
|
|
|
|
segfault caused by writing past the end of the buffer.
XXX how do I bump the version of this package?
|
|
by tnn@.
|
|
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.
|
|
|
|
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.
|
|
|
|
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@
|
|
Apply Tyler Retzlaff's patches from PR 32323 to make this compile with gcc4.
|
|
the old one is just bogus and depends on GCC extensions. Unbreaks
GCC 4 build.
|
|
fixes build on BSD/OS.
from T. M. Pederson in PR pkg/31024.
|
|
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
|
|
Linux again.
|
|
|
|
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).
|
|
|
|
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.
|
|
DragonFly. part of PR pkg/28579 from Todd Willey. thanks!
|
|
|
|
|
|
|
|
as there is no call to malloc(0) in this code.
As a side effect, need to explicitly add a check for <stdlib.h>.
|
|
with bootstrap-pkgsrc/digest.
|
|
|
|
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.
|