We do not need to wipe specific keyslot area only.

This commit is contained in:
Ondrej Kozina
2023-09-26 15:50:43 +02:00
parent f0b556b2d4
commit df9976e2a7
3 changed files with 3 additions and 11 deletions

View File

@@ -4537,7 +4537,7 @@ int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot)
return LUKS_del_key(keyslot, &cd->u.luks1.hdr, cd);
}
return LUKS2_keyslot_wipe(cd, &cd->u.luks2.hdr, keyslot, 0);
return LUKS2_keyslot_wipe(cd, &cd->u.luks2.hdr, keyslot);
}
static int _check_header_data_overlap(struct crypt_device *cd, const char *name)