Add --integrity-key-size option to cryptsetup.

This patch adds support for --integrity-key-size option that can be used
to setup non-standard HMAC integrity key size.
This commit is contained in:
Milan Broz
2024-11-24 14:39:22 +01:00
parent 7b5ac650e5
commit 491f31c4d4
7 changed files with 43 additions and 12 deletions

View File

@@ -1892,8 +1892,7 @@ static int LUKS2_check_encryption_params(struct crypt_device *cd,
const char **ret_integrity,
size_t *ret_integrity_key_size)
{
int r;
size_t integrity_key_size = 0;
int r, integrity_key_size = 0;
assert(cipher);
assert(cipher_mode);