dm-crypt: Allow to specify the integrity key size as option
authorIngo Franzki <ifranzki@linux.ibm.com>
Fri, 16 Aug 2024 11:21:33 +0000 (13:21 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 21 Aug 2024 13:36:27 +0000 (15:36 +0200)
commit4441686b24a1d7acf9834ca95864d67e3f97666a
treebe49dd02030192c614050bcff9fee3681485ddfa
parentf3631ae11d4694e2befff9dd10dab8cd56033f6c
dm-crypt: Allow to specify the integrity key size as option

For the MAC based integrity operation, the integrity key size (i.e.
key_mac_size) is currently set to the digest size of the used digest.

For wrapped key HMAC algorithms, the key size is independent of the
cryptographic key size. So there is no known size of the mac key in
such cases. The desired key size can optionally be specified as argument
when the dm-crypt device is configured via 'integrity_key_size:%u'.
If no integrity_key_size argument is specified, the mac key size
is still set to the digest size, as before.

Increase version number to 1.28.0 so that support for the new
argument can be detected by user space (i.e. cryptsetup).

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Documentation/admin-guide/device-mapper/dm-crypt.rst
drivers/md/dm-crypt.c