dissect.fve.bde.keys

Module Contents

Functions

stretch

Stretch a password with a specified salt.

derive_user_key

Derive an AES key from a given user passphrase.

derive_recovery_key

Derive an AES key from a given recovery password.

check_recovery_password

Check if a given recovery password is valid.

dissect.fve.bde.keys.stretch(password: bytes, salt: bytes, rounds: int = 1048576) bytes

Stretch a password with a specified salt.

Bitlocker uses this as the key derivation algorithm.

dissect.fve.bde.keys.derive_user_key(user_password: str) bytes

Derive an AES key from a given user passphrase.

dissect.fve.bde.keys.derive_recovery_key(recovery_password: str) bytes

Derive an AES key from a given recovery password.

dissect.fve.bde.keys.check_recovery_password(recovery_password: str) bool

Check if a given recovery password is valid.