Fix compatibility for older dmcrypt without integrity_key_size

For older kernel an default HMAC key size we must not set
integrity_key_size option.
This commit is contained in:
Milan Broz
2024-11-26 22:34:15 +01:00
parent b5672053f5
commit 5eda5f6a38
4 changed files with 14 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ struct dm_target {
uint64_t iv_offset; /* IV initialisation sector */
uint32_t tag_size; /* additional on-disk tag size */
uint32_t sector_size; /* encryption sector size */
uint32_t integrity_key_size; /* for wrapped key HMAC */
uint32_t integrity_key_size; /* explicit integrity key size (HMAC), 0 for default */
} crypt;
struct {
struct device *hash_device;