|
|
1.1.1.10 root 1: /* 1.1.1.12! root 2: Legal Notice: Some portions of the source code contained in this file were ! 3: derived from the source code of Encryption for the Masses 2.02a, which is ! 4: Copyright (c) 1998-2000 Paul Le Roux and which is governed by the 'License ! 5: Agreement for Encryption for the Masses'. Modifications and additions to ! 6: the original source code (contained in this file) and all other portions of ! 7: this file are Copyright (c) 2003-2008 TrueCrypt Foundation and are governed ! 8: by the TrueCrypt License 2.4 the full text of which is contained in the ! 9: file License.txt included in TrueCrypt binary and source code distribution 1.1.1.10 root 10: packages. */ 1.1 root 11: 1.1.1.10 root 12: #include "Password.h" 1.1 root 13: 1.1.1.12! root 14: ! 15: #ifdef __cplusplus ! 16: extern "C" { ! 17: #endif ! 18: ! 19: #define TC_HEADER_OFFSET_MAGIC 64 ! 20: #define TC_HEADER_OFFSET_VERSION 68 ! 21: #define TC_HEADER_OFFSET_REQUIRED_VERSION 70 ! 22: #define TC_HEADER_OFFSET_KEY_AREA_CRC 72 ! 23: #define TC_HEADER_OFFSET_VOLUME_CREATION_TIME 76 ! 24: #define TC_HEADER_OFFSET_MODIFICATION_TIME 84 ! 25: #define TC_HEADER_OFFSET_HIDDEN_VOLUME_SIZE 92 ! 26: #define TC_HEADER_OFFSET_VOLUME_SIZE 100 ! 27: #define TC_HEADER_OFFSET_ENCRYPTED_AREA_START 108 ! 28: #define TC_HEADER_OFFSET_ENCRYPTED_AREA_LENGTH 116 ! 29: ! 30: uint16 GetHeaderField16 (byte *header, size_t offset); ! 31: uint32 GetHeaderField32 (byte *header, size_t offset); ! 32: UINT64_STRUCT GetHeaderField64 (byte *header, size_t offset); ! 33: int VolumeReadHeader (BOOL bBoot, char *encryptedHeader, Password *password, PCRYPTO_INFO *retInfo, CRYPTO_INFO *retHeaderCryptoInfo); ! 34: #ifndef TC_WINDOWS_BOOT ! 35: int VolumeWriteHeader (BOOL bBoot, char *encryptedHeader, int ea, int mode, Password *password, int pkcs5_prf, char *masterKeydata, unsigned __int64 volumeCreationTime, PCRYPTO_INFO *retInfo, unsigned __int64 volumeSize, unsigned __int64 hiddenVolumeSize, unsigned __int64 encryptedAreaStart, unsigned __int64 encryptedAreaLength, BOOL bWipeMode); ! 36: #endif ! 37: ! 38: #ifdef __cplusplus ! 39: } ! 40: #endif ! 41:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.