cryptsetup: Adjust XTS keys size also if cipher is specified with capi: prefix.

Fixes: #776
This commit is contained in:
Milan Broz
2025-05-15 12:24:47 +02:00
parent bd2f7eb671
commit e5c2892cd5
4 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ int set_pbkdf_params(struct crypt_device *cd, const char *dev_type);
int set_tries_tty(bool keyring);
int get_adjusted_key_size(const char *cipher_mode, uint32_t keysize_bits,
int get_adjusted_key_size(const char *cipher, const char *cipher_mode, uint32_t keysize_bits,
uint32_t default_size_bits, int integrity_keysize);
int luksFormat(struct crypt_device **r_cd, struct crypt_keyslot_context **r_kc);