libdevmapper: Support dm-crypt integrity_key_size option

This patch implement support for setting specific integrity key size
option in dm-crypt, available since dm-crypt version 1.28.0.

This can be used for setting non-standard HMAC key length.

Mostly based on code from Ingo Franzki <ifranzki@linux.ibm.com>
This commit is contained in:
Milan Broz
2024-11-25 10:47:45 +01:00
parent 1bea029cef
commit ff3e2c6a43
12 changed files with 39 additions and 35 deletions

View File

@@ -88,7 +88,7 @@ static int LUKS_endec_template(char *src, size_t srcLength,
r = dm_crypt_target_set(&dmd.segment, 0, dmd.size,
crypt_metadata_device(ctx), vk, cipher_spec, 0, sector,
NULL, 0, SECTOR_SIZE);
NULL, 0, 0, SECTOR_SIZE);
if (r)
goto out;