Update default checksum to BLAKE256.
This commit is contained in:
parent
d08b5ea399
commit
68f60ba50b
5 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ extern "C" {
|
||||||
#define MAX_PW_LEN 16
|
#define MAX_PW_LEN 16
|
||||||
#define CKSUM_MASK 0x700
|
#define CKSUM_MASK 0x700
|
||||||
#define CKSUM_MAX_BYTES 64
|
#define CKSUM_MAX_BYTES 64
|
||||||
#define DEFAULT_CKSUM "SKEIN256"
|
#define DEFAULT_CKSUM "BLAKE256"
|
||||||
|
|
||||||
#define ENCRYPT_FLAG 1
|
#define ENCRYPT_FLAG 1
|
||||||
#define DECRYPT_FLAG 0
|
#define DECRYPT_FLAG 0
|
||||||
|
|
2
main.c
2
main.c
|
@ -2263,7 +2263,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
case 'S':
|
case 'S':
|
||||||
if (get_checksum_props(optarg, &cksum, &cksum_bytes, &mac_bytes, 0) == -1) {
|
if (get_checksum_props(optarg, &cksum, &cksum_bytes, &mac_bytes, 0) == -1) {
|
||||||
err_exit(0, "Invalid checksum type %s", optarg);
|
err_exit(0, "Invalid checksum type %s\n", optarg);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ for algo in zlib ppmd
|
||||||
do
|
do
|
||||||
for tf in `cat files.lst`
|
for tf in `cat files.lst`
|
||||||
do
|
do
|
||||||
for cksum in CRC64 SHA256 SHA512 SKEIN256 SKEIN512 KECCAK256 KECCAK512
|
for cksum in CRC64 SHA256 SHA512 BLAKE256 BLAKE512 KECCAK256 KECCAK512
|
||||||
do
|
do
|
||||||
cmd="../../pcompress -c ${algo} -l 6 -s 1m -S ${cksum} ${tf}"
|
cmd="../../pcompress -c ${algo} -l 6 -s 1m -S ${cksum} ${tf}"
|
||||||
echo "Running $cmd"
|
echo "Running $cmd"
|
||||||
|
|
|
@ -10,7 +10,7 @@ do
|
||||||
for tf in `cat files.lst`
|
for tf in `cat files.lst`
|
||||||
do
|
do
|
||||||
rm -f ${tf}.*
|
rm -f ${tf}.*
|
||||||
for feat in "-e" "-e -L -S SHA256" "-D -e -S SHA512" "-D -EE -L -e -S SKEIN512" "-e -S CRC64" "-e -P" "-e -L -P -S KECCAK256" "-D -e -L -S KECCAK512"
|
for feat in "-e" "-e -L -S SHA256" "-D -e -S SHA512" "-D -EE -L -e -S BLAKE512" "-e -S CRC64" "-e -P" "-e -L -P -S KECCAK256" "-D -e -L -S KECCAK512"
|
||||||
do
|
do
|
||||||
for seg in 2m 100m
|
for seg in 2m 100m
|
||||||
do
|
do
|
||||||
|
|
|
@ -52,7 +52,7 @@ do
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
for feat in "-S CRC64" "-S SKEIN256" "-S SKEIN512" "-S SHA256" "-S SHA512" "-S KECCAK256" "-S KECCAK512"
|
for feat in "-S CRC64" "-S BLAKE256" "-S BLAKE512" "-S SHA256" "-S SHA512" "-S KECCAK256" "-S KECCAK512"
|
||||||
do
|
do
|
||||||
rm -f ${tstf}.*
|
rm -f ${tstf}.*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue