From 7a98ee8ba64885c1161958956d8f2fd2e6413380 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Sat, 21 Jan 2017 23:47:16 +0100 Subject: [PATCH] change forged key lenght to 512 bits Addresses issue #238: as 512 bit key length triggers use of AES256. Apparently so far tombs used AES128 due to key length 256. Change passes all tests and has no regression implications. --- tomb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomb b/tomb index ac6626f..aa74125 100755 --- a/tomb +++ b/tomb @@ -1508,7 +1508,7 @@ forge_key() { { option_is_set --use-urandom } && random_source=/dev/urandom _verbose "Data dump using ::1:: from ::2 source::" ${DD[1]} $random_source - TOMBSECRET=$(${=DD} bs=1 count=256 if=$random_source) + TOMBSECRET=$(${=DD} bs=1 count=512 if=$random_source) [[ $? == 0 ]] || { _warning "Cannot generate encryption key." _failure "Operation aborted." }