b9a53a
From a7f18f9ef4abc7e0732d1710ead2a18a38c3ec6d Mon Sep 17 00:00:00 2001
4b8c80
From: Frantisek Sumsal <frantisek@sumsal.cz>
4b8c80
Date: Fri, 15 Mar 2019 10:05:33 +0100
4b8c80
Subject: [PATCH] test: use PBKDF2 instead of Argon2 in cryptsetup...
4b8c80
4b8c80
to reduce memory requirements for volume manipulation. Also,
4b8c80
to further improve the test performance, reduce number of PBKDF
4b8c80
iterations to 1000 (allowed minimum).
4b8c80
4b8c80
(cherry picked from commit 5b69d297c153478f6f5e74ba66e1f4e5b6422baf)
b9a53a
b9a53a
Related: #1761519
4b8c80
---
4b8c80
 test/TEST-02-CRYPTSETUP/test.sh | 2 +-
4b8c80
 1 file changed, 1 insertion(+), 1 deletion(-)
4b8c80
4b8c80
diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh
4b8c80
index 545602e17a..c38e56f72e 100755
4b8c80
--- a/test/TEST-02-CRYPTSETUP/test.sh
4b8c80
+++ b/test/TEST-02-CRYPTSETUP/test.sh
4b8c80
@@ -29,7 +29,7 @@ check_result_qemu() {
4b8c80
 test_setup() {
4b8c80
     create_empty_image
4b8c80
     echo -n test >$TESTDIR/keyfile
4b8c80
-    cryptsetup -q luksFormat ${LOOPDEV}p2 $TESTDIR/keyfile
4b8c80
+    cryptsetup -q luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 ${LOOPDEV}p2 $TESTDIR/keyfile
4b8c80
     cryptsetup luksOpen ${LOOPDEV}p2 varcrypt <$TESTDIR/keyfile
4b8c80
     mkfs.ext4 -L var /dev/mapper/varcrypt
4b8c80
     mkdir -p $TESTDIR/root