cryptsetup-util: disable pbkdf benchmark in cryptsetup_set_minimal_pbkdf.
authorOndrej Kozina <okozina@redhat.com>
Thu, 27 May 2021 06:43:18 +0000 (08:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Jun 2021 13:53:14 +0000 (15:53 +0200)
commit358b1f68b078d58a16deac1982da48c4d90a89a2
treeea7773dafe95284b05a3633c192d87c1a34f7835
parent7dba77a67ed334d9336b89371b0601661609d277
cryptsetup-util: disable pbkdf benchmark in cryptsetup_set_minimal_pbkdf.

No need to benchmark pbkdf when asking for minimal values
anyway.

1000 iterations count is minimum for both LUKS1 and LUKS2
pbkdf2 keyslot parameters according to NIST SP 800-132, ch. 5.2.

Iterations count can not be lower than recommended minimum
when benchmark is disabled. The time_ms member is ignored with
benchmark disabled.
src/shared/cryptsetup-util.c