Add keyslot check code.

This patch adds keyslot randomness analysis to cryptsetup repair command
to check for a detectable corruption of binary area.

It uses Chi2 analysis. This check basically replaces external keyslot
checker program.
This commit is contained in:
Milan Broz
2025-04-29 08:25:40 +02:00
parent f29337aa9f
commit 6b832b8d03
7 changed files with 227 additions and 0 deletions

View File

@@ -66,4 +66,6 @@ int luks_init_keyslot_contexts_by_volume_keys(struct crypt_device *cd,
struct crypt_keyslot_context **r_kc1,
struct crypt_keyslot_context **r_kc2);
void luks_check_keyslots(struct crypt_device *cd, const char *device);
#endif /* UTILS_LUKS_H */