summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-03-15 10:05:33 +0100
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2019-10-22 16:30:21 +0200
commita7f18f9ef4abc7e0732d1710ead2a18a38c3ec6d (patch)
treef8a831ff12759f7dd373da33b06d1b515bb5ac58 /test
parent33aa231f5bf3335cdacfb38ffba757865019ce4d (diff)
downloadsystemd-a7f18f9ef4abc7e0732d1710ead2a18a38c3ec6d.tar.gz
test: use PBKDF2 instead of Argon2 in cryptsetup...
to reduce memory requirements for volume manipulation. Also, to further improve the test performance, reduce number of PBKDF iterations to 1000 (allowed minimum). (cherry picked from commit 5b69d297c153478f6f5e74ba66e1f4e5b6422baf) Related: #1761519
Diffstat (limited to 'test')
-rwxr-xr-xtest/TEST-02-CRYPTSETUP/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh
index 545602e17a..c38e56f72e 100755
--- a/test/TEST-02-CRYPTSETUP/test.sh
+++ b/test/TEST-02-CRYPTSETUP/test.sh
@@ -29,7 +29,7 @@ check_result_qemu() {
test_setup() {
create_empty_image
echo -n test >$TESTDIR/keyfile
- cryptsetup -q luksFormat ${LOOPDEV}p2 $TESTDIR/keyfile
+ cryptsetup -q luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 ${LOOPDEV}p2 $TESTDIR/keyfile
cryptsetup luksOpen ${LOOPDEV}p2 varcrypt <$TESTDIR/keyfile
mkfs.ext4 -L var /dev/mapper/varcrypt
mkdir -p $TESTDIR/root