cryptsetup: remove redundant check
The immediately preceeding check already covered that.
This removes and addition made back in aae6eb9611.
cc @williamcroberts
This commit is contained in:
committed by
Luca Boccassi
parent
4c46ece4c8
commit
3c6439bf2c
@@ -57,10 +57,6 @@ int acquire_luks2_key(
|
||||
if ((flags & TPM2_FLAGS_USE_PIN) && !pin)
|
||||
return -ENOANO;
|
||||
|
||||
/* If we're using a PIN, and the luks header has a salt, it better have a pin too */
|
||||
if ((flags & TPM2_FLAGS_USE_PIN) && salt_size > 0 && !pin)
|
||||
return -ENOANO;
|
||||
|
||||
if (pin && salt_size > 0) {
|
||||
uint8_t salted_pin[SHA256_DIGEST_SIZE] = {};
|
||||
CLEANUP_ERASE(salted_pin);
|
||||
|
||||
Reference in New Issue
Block a user