8d419f
From 2e673178e0bf90fd9083d19061ad6f03ecd94c3d Mon Sep 17 00:00:00 2001
8d419f
From: Frantisek Sumsal <frantisek@sumsal.cz>
8d419f
Date: Thu, 7 Jul 2022 17:16:31 +0200
8d419f
Subject: [PATCH] test: use PBKDF2 with capped iterations instead of Argon2
8d419f
8d419f
to reduce the amount of resources the test needs (similarly to TEST-24
8d419f
where we do the same thing).
8d419f
8d419f
(cherry picked from commit 8fec14a7d397f52b93024bf3417de8f77b0d85e6)
8d419f
8d419f
Related: #2087652
8d419f
---
8d419f
 test/units/testsuite-70.sh | 2 +-
8d419f
 1 file changed, 1 insertion(+), 1 deletion(-)
8d419f
8d419f
diff --git a/test/units/testsuite-70.sh b/test/units/testsuite-70.sh
8d419f
index f395ef4e5e..09f78a0226 100755
8d419f
--- a/test/units/testsuite-70.sh
8d419f
+++ b/test/units/testsuite-70.sh
8d419f
@@ -9,7 +9,7 @@ export SYSTEMD_LOG_LEVEL=debug
8d419f
 img="/var/tmp/test.img"
8d419f
 dd if=/dev/zero of=$img bs=1024k count=20 status=none
8d419f
 echo -n passphrase >/tmp/passphrase
8d419f
-cryptsetup luksFormat -q --use-urandom $img /tmp/passphrase
8d419f
+cryptsetup luksFormat -q --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --use-urandom $img /tmp/passphrase
8d419f
 
8d419f
 # Enroll unlock with default PCR policy
8d419f
 env PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto $img