NVbit : Accessing Bitlocker volumes from linux.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
894B

  1. /*
  2. nvbit Bitlocker for linux
  3. ------------------------------
  4. Nitin Kumar nitin at nvlabs.in
  5. Vipin Kumar vipin at nvlabs.in
  6. web: http://www.nvlabs.in
  7. Licensed under GPL Version 3
  8. -------------------
  9. Copyright (c) 2008
  10. Released under the GPL Version 3
  11. http://www.gnu.org/licenses/gpl-3.0.txt
  12. */
  13. #ifndef RECOVERY_PASSWORD_H
  14. #define RECOVERY_PASSWORD_H
  15. #include "../common.h"
  16. // this blob is used for calculating recovery key from recovery password
  17. # pragma pack (1) // 1 byte packing
  18. typedef struct {
  19. unsigned char sha_current[32];
  20. unsigned char sha_password[32];
  21. unsigned char salt[16];
  22. int64 hash_count;
  23. }blob;
  24. # pragma pack () // restore original packing
  25. long Calculate_Recovery_Key_From_Password(
  26. unsigned char *recovery_password,
  27. unsigned char *header,
  28. unsigned long *output);
  29. #endif