mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
And fix previous comment once more... :)
This commit is contained in:
@@ -512,7 +512,7 @@ static int TCRYPT_init_hdr(struct crypt_device *cd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skipped == i || r == -ENOTSUP)
|
if ((skipped && skipped == i) || r == -ENOTSUP)
|
||||||
log_err(cd, _("Required kernel crypto interface not available.\n"
|
log_err(cd, _("Required kernel crypto interface not available.\n"
|
||||||
"Ensure you have algif_skcipher kernel module loaded.\n"));
|
"Ensure you have algif_skcipher kernel module loaded.\n"));
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
|||||||
@@ -512,7 +512,7 @@ static int action_benchmark(int arg __attribute__((unused)))
|
|||||||
log_std("%11s %4db %12s %12s\n", cipher,
|
log_std("%11s %4db %12s %12s\n", cipher,
|
||||||
bciphers[i].key_size*8, _("N/A"), _("N/A"));
|
bciphers[i].key_size*8, _("N/A"), _("N/A"));
|
||||||
}
|
}
|
||||||
if (skipped == i)
|
if (skipped && skipped == i)
|
||||||
r = -ENOTSUP;
|
r = -ENOTSUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user