teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0264-test-use-PBKDF2-with-capped-iterations-instead-of-Ar.patch

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