]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use PBKDF2 with capped iterations instead of Argon2 23937/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Jul 2022 15:16:31 +0000 (17:16 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Jul 2022 18:54:41 +0000 (20:54 +0200)
to reduce the amount of resources the test needs (similarly to TEST-24
where we do the same thing).

test/units/testsuite-70.sh

index f395ef4e5e1b8ece380a5cb1f8fbd6128d16c3ca..09f78a0226b274543746a6771339063687db01f1 100755 (executable)
@@ -9,7 +9,7 @@ export SYSTEMD_LOG_LEVEL=debug
 img="/var/tmp/test.img"
 dd if=/dev/zero of=$img bs=1024k count=20 status=none
 echo -n passphrase >/tmp/passphrase
-cryptsetup luksFormat -q --use-urandom $img /tmp/passphrase
+cryptsetup luksFormat -q --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --use-urandom $img /tmp/passphrase
 
 # Enroll unlock with default PCR policy
 env PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto $img