mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 13:20:11 +01:00
Refactor get_adjusted_key_size.
This commit is contained in:
committed by
Milan Broz
parent
48683f7316
commit
ff7a21eb94
@@ -1683,7 +1683,8 @@ int luksFormat(struct crypt_device **r_cd, char **r_password, size_t *r_password
|
||||
goto out;
|
||||
}
|
||||
|
||||
keysize = get_adjusted_key_size(cipher_mode, DEFAULT_LUKS1_KEYBITS, integrity_keysize);
|
||||
keysize = get_adjusted_key_size(cipher_mode, ARG_UINT32(OPT_KEY_SIZE_ID),
|
||||
DEFAULT_LUKS1_KEYBITS, integrity_keysize);
|
||||
|
||||
if (ARG_SET(OPT_HW_OPAL_ONLY_ID))
|
||||
keysize = opal_params.user_key_size;
|
||||
|
||||
Reference in New Issue
Block a user