Add libLUKS2.

This commit is contained in:
Milan Broz
2017-08-25 20:26:20 +02:00
parent 00b103c85c
commit 9f2727bb77
27 changed files with 9281 additions and 404 deletions

View File

@@ -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;