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.

98 lines
1.5KB

  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. // this header file contains all common definitions including data types
  14. // disable warnings
  15. #pragma warning( disable : 4047 4244 4996 4267 4013 4311)
  16. #ifndef COMMON_H
  17. #define COMMON_H
  18. #include <stdio.h>
  19. #define LINUX
  20. // data type defines for VC++ 6.0
  21. #ifdef WIN32
  22. typedef unsigned __int8 int8;
  23. typedef unsigned __int16 int16;
  24. typedef unsigned __int32 int32;
  25. typedef unsigned __int64 int64;
  26. #endif
  27. #ifdef LINUX // data type define for linux
  28. typedef unsigned char int8;
  29. typedef unsigned short int16;
  30. typedef unsigned long int32;
  31. typedef unsigned long long int64;
  32. #endif
  33. typedef int64 FILETIME;
  34. /* guids are of the following type
  35. 02DD640E-E6E7-439E-B526-3F419CA3CE95
  36. 1 2 3 4 5
  37. */
  38. /*#ifdef GUID
  39. #undefine GUID
  40. #endif
  41. */
  42. # pragma pack (1) // 1 byte packing
  43. typedef struct _GUID {
  44. int32 first; // it should be value defined in FVE_SIGNATURE in fve.h
  45. int16 second;
  46. int16 third;
  47. int8 fourth[2];
  48. int8 fifth[6] ;
  49. } GUID;
  50. # pragma pack () // restore original packing
  51. #endif // COMMON_H