mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add libLUKS2.
This commit is contained in:
@@ -197,7 +197,7 @@ int crypt_benchmark(struct crypt_device *cd,
|
||||
char *c;
|
||||
int r;
|
||||
|
||||
if (!cipher || !cipher_mode || !volume_key_size)
|
||||
if (!cipher || !cipher_mode || !volume_key_size || !encryption_mbs || !decryption_mbs)
|
||||
return -EINVAL;
|
||||
|
||||
r = init_crypto(cd);
|
||||
@@ -244,6 +244,9 @@ int crypt_benchmark_pbkdf(struct crypt_device *cd,
|
||||
int r;
|
||||
const char *kdf_opt;
|
||||
|
||||
if (!pbkdf || (!password && password_size))
|
||||
return -EINVAL;
|
||||
|
||||
r = init_crypto(cd);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user