Update default checksum to BLAKE256.

This commit is contained in:
Moinak Ghosh 2013-01-26 17:40:23 +05:30
parent d08b5ea399
commit 68f60ba50b
5 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ extern "C" {
#define MAX_PW_LEN 16
#define CKSUM_MASK 0x700
#define CKSUM_MAX_BYTES 64
#define DEFAULT_CKSUM "SKEIN256"
#define DEFAULT_CKSUM "BLAKE256"
#define ENCRYPT_FLAG 1
#define DECRYPT_FLAG 0

2
main.c
View file

@ -2263,7 +2263,7 @@ main(int argc, char *argv[])
case 'S':
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;

View file

@ -9,7 +9,7 @@ for algo in zlib ppmd
do
for tf in `cat files.lst`
do
for cksum in CRC64 SHA256 SHA512 SKEIN256 SKEIN512 KECCAK256 KECCAK512
for cksum in CRC64 SHA256 SHA512 BLAKE256 BLAKE512 KECCAK256 KECCAK512
do
cmd="../../pcompress -c ${algo} -l 6 -s 1m -S ${cksum} ${tf}"
echo "Running $cmd"

View file

@ -10,7 +10,7 @@ do
for tf in `cat files.lst`
do
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
for seg in 2m 100m
do

View file

@ -52,7 +52,7 @@ do
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
rm -f ${tstf}.*