mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Make the PHMAC integrity algorithm know to libcryptsetup. The size of a key for PHMAC is not known, because PHMAC gets an opaque blob as key, who's physical size has nothing to do with the cryptographic size. Thus, let INTEGRITY_key_size() and crypt_parse_integrity_mode() return the required_key_size as key size for PHMAC, or -EINVAL if required_key_size is zero, to indicate that the size is unknown. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
15 KiB
15 KiB