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