]> pd.if.org Git - zpackage/commit
switch to blake2
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 1 Mar 2019 16:59:00 +0000 (16:59 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 1 Mar 2019 16:59:00 +0000 (16:59 +0000)
commit2ac486ab18adbbb84563eafc0d67fa8da6ca7822
tree3d33864d3a3ac7d6bf7e4a8e78267fc2cb1fbefd
parent4fb490d9107b747c86964d0d3925470b06d97c8c
switch to blake2

Replaced the sha256 hash used internally with blake2b variant which is
much faster in software.  We use the 256 bit version, which is the same
size as sha256.  I was unable to find published test vectors for
blake2b-256, so the b2sum utility was compiled from the blake2 sources,
and the output of that program in 256 bit mode was used to generate
testing data.
13 files changed:
lib/integ.c
lib/uncompress.c
lib/zpm.c
lib/zpm_hash.c
schema/main.sql
src/fetchurl.c
src/hash.c
t/add.t
t/addfile.t
t/extract.t
t/hash.t
zpm-gc
zpm.h