VeraCrypt  1.24-Update6
About: VeraCrypt is a free disk encryption software (based on TrueCrypt).
  Fossies Dox: VeraCrypt_1.24-Update6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Tcdefs.h File Reference
#include <inttypes.h>
#include <limits.h>
#include <memory.h>
Include dependency graph for Tcdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  UINT64_STRUCT
 

Macros

#define TC_APP_NAME   "VeraCrypt"
 
#define VERSION_STRING   "1.24-Update6"
 
#define VERSION_STRING_SUFFIX   ""
 
#define VERSION_NUM   0x0124
 
#define TC_STR_RELEASE_DATE   L"March 10, 2020"
 
#define TC_RELEASE_DATE_YEAR   2020
 
#define TC_RELEASE_DATE_MONTH   3
 
#define BYTES_PER_KB   1024LL
 
#define BYTES_PER_MB   1048576LL
 
#define BYTES_PER_GB   1073741824LL
 
#define BYTES_PER_TB   1099511627776LL
 
#define BYTES_PER_PB   1125899906842624LL
 
#define WIDE(x)   (LPWSTR)L##x
 
#define VC_MAX(a, b)   ((a)>(b))?(a):(b)
 
#define VC_MIN(a, b)   ((a)<(b))?(a):(b)
 
#define LL(x)   x##ULL
 
#define __int8   char
 
#define __int16   short
 
#define __int32   int
 
#define BOOL   int
 
#define FALSE   0
 
#define TRUE   1
 
#define TC_INT_TYPES_DEFINED
 
#define __has_builtin(x)   0
 
#define TC_THROW_FATAL_EXCEPTION   *(char *) 0 = 0
 
#define TCalloc   malloc
 
#define TCfree   free
 
#define TC_TO_STRING2(n)   #n
 defined(_UEFI) More...
 
#define TC_TO_STRING(n)   TC_TO_STRING2(n)
 
#define Dump(...)
 
#define DumpMem(...)
 
#define trace_msg(...)
 
#define trace_point
 
#define burn(mem, size)   do { volatile char *burnm = (volatile char *)(mem); int burnc = size; while (burnc--) *burnm++ = 0; } while (0)
 
#define volatile_memcpy(d, s, size)   do { volatile char *destm = (volatile char *)(d); volatile char *srcm = (volatile char *)(s); size_t memc = size; while (memc--) *destm++ = *srcm++; } while (0)
 
#define FAST_ERASE64(mem, size)   do { volatile uint64 *burnm = (volatile uint64 *)(mem); int burnc = size >> 3; while (burnc--) *burnm++ = 0; } while (0)
 
#define TC_MAX_PATH   260 /* Includes the null terminator */
 
#define TC_STR_RELEASED_BY   L"Released by IDRIX on " TC_STR_RELEASE_DATE
 
#define MAX_URL_LENGTH   2084 /* Internet Explorer limit. Includes the terminating null character. */
 
#define TC_HOMEPAGE   L"https://www.idrix.fr/"
 
#define TC_APPLINK   L"https://www.veracrypt.fr"
 

Typedefs

typedef int8_t int8
 
typedef int16_t int16
 
typedef int32_t int32
 
typedef int64_t int64
 
typedef uint8_t byte
 
typedef uint16_t uint16
 
typedef uint32_t uint32
 
typedef uint64_t uint64
 
typedef uint64 TC_LARGEST_COMPILER_UINT
 
typedef unsigned char uint_8t
 
typedef unsigned short uint_16t
 
typedef unsigned int uint_32t
 
typedef uint64 uint_64t
 

Enumerations

enum  {
  ERR_SUCCESS = 0, ERR_OS_ERROR = 1, ERR_OUTOFMEMORY = 2, ERR_PASSWORD_WRONG = 3,
  ERR_VOL_FORMAT_BAD = 4, ERR_DRIVE_NOT_FOUND = 5, ERR_FILES_OPEN = 6, ERR_VOL_SIZE_WRONG = 7,
  ERR_COMPRESSION_NOT_SUPPORTED = 8, ERR_PASSWORD_CHANGE_VOL_TYPE = 9, ERR_PASSWORD_CHANGE_VOL_VERSION = 10, ERR_VOL_SEEKING = 11,
  ERR_VOL_WRITING = 12, ERR_FILES_OPEN_LOCK = 13, ERR_VOL_READING = 14, ERR_DRIVER_VERSION = 15,
  ERR_NEW_VERSION_REQUIRED = 16, ERR_CIPHER_INIT_FAILURE = 17, ERR_CIPHER_INIT_WEAK_KEY = 18, ERR_SELF_TESTS_FAILED = 19,
  ERR_SECTOR_SIZE_INCOMPATIBLE = 20, ERR_VOL_ALREADY_MOUNTED = 21, ERR_NO_FREE_DRIVES = 22, ERR_FILE_OPEN_FAILED = 23,
  ERR_VOL_MOUNT_FAILED = 24, DEPRECATED_ERR_INVALID_DEVICE = 25, ERR_ACCESS_DENIED = 26, ERR_MODE_INIT_FAILED = 27,
  ERR_DONT_REPORT = 28, ERR_ENCRYPTION_NOT_COMPLETED = 29, ERR_PARAMETER_INCORRECT = 30, ERR_SYS_HIDVOL_HEAD_REENC_MODE_WRONG = 31,
  ERR_NONSYS_INPLACE_ENC_INCOMPLETE = 32, ERR_USER_ABORT = 33, ERR_UNSUPPORTED_TRUECRYPT_FORMAT = 34, ERR_RAND_INIT_FAILED = 35,
  ERR_CAPI_INIT_FAILED = 36
}
 

Macro Definition Documentation

◆ __has_builtin

#define __has_builtin (   x)    0

Definition at line 174 of file Tcdefs.h.

◆ __int16

#define __int16   short

Definition at line 133 of file Tcdefs.h.

◆ __int32

#define __int32   int

Definition at line 138 of file Tcdefs.h.

◆ __int8

#define __int8   char

Definition at line 128 of file Tcdefs.h.

◆ BOOL

#define BOOL   int

Definition at line 142 of file Tcdefs.h.

◆ burn

#define burn (   mem,
  size 
)    do { volatile char *burnm = (volatile char *)(mem); int burnc = size; while (burnc--) *burnm++ = 0; } while (0)

Definition at line 402 of file Tcdefs.h.

◆ BYTES_PER_GB

#define BYTES_PER_GB   1073741824LL

Definition at line 76 of file Tcdefs.h.

◆ BYTES_PER_KB

#define BYTES_PER_KB   1024LL

Definition at line 74 of file Tcdefs.h.

◆ BYTES_PER_MB

#define BYTES_PER_MB   1048576LL

Definition at line 75 of file Tcdefs.h.

◆ BYTES_PER_PB

#define BYTES_PER_PB   1125899906842624LL

Definition at line 78 of file Tcdefs.h.

◆ BYTES_PER_TB

#define BYTES_PER_TB   1099511627776LL

Definition at line 77 of file Tcdefs.h.

◆ Dump

#define Dump (   ...)

Definition at line 371 of file Tcdefs.h.

◆ DumpMem

#define DumpMem (   ...)

Definition at line 372 of file Tcdefs.h.

◆ FALSE

#define FALSE   0

Definition at line 144 of file Tcdefs.h.

◆ FAST_ERASE64

#define FAST_ERASE64 (   mem,
  size 
)    do { volatile uint64 *burnm = (volatile uint64 *)(mem); int burnc = size >> 3; while (burnc--) *burnm++ = 0; } while (0)

Definition at line 409 of file Tcdefs.h.

◆ LL

#define LL (   x)    x##ULL

Definition at line 123 of file Tcdefs.h.

◆ MAX_URL_LENGTH

#define MAX_URL_LENGTH   2084 /* Internet Explorer limit. Includes the terminating null character. */

Definition at line 436 of file Tcdefs.h.

◆ TC_APP_NAME

#define TC_APP_NAME   "VeraCrypt"

Definition at line 55 of file Tcdefs.h.

◆ TC_APPLINK

#define TC_APPLINK   L"https://www.veracrypt.fr"

Definition at line 439 of file Tcdefs.h.

◆ TC_HOMEPAGE

#define TC_HOMEPAGE   L"https://www.idrix.fr/"

Definition at line 438 of file Tcdefs.h.

◆ TC_INT_TYPES_DEFINED

#define TC_INT_TYPES_DEFINED

Definition at line 150 of file Tcdefs.h.

◆ TC_MAX_PATH

#define TC_MAX_PATH   260 /* Includes the null terminator */

Definition at line 431 of file Tcdefs.h.

◆ TC_RELEASE_DATE_MONTH

#define TC_RELEASE_DATE_MONTH   3

Definition at line 72 of file Tcdefs.h.

◆ TC_RELEASE_DATE_YEAR

#define TC_RELEASE_DATE_YEAR   2020

Definition at line 71 of file Tcdefs.h.

◆ TC_STR_RELEASE_DATE

#define TC_STR_RELEASE_DATE   L"March 10, 2020"

Definition at line 70 of file Tcdefs.h.

◆ TC_STR_RELEASED_BY

#define TC_STR_RELEASED_BY   L"Released by IDRIX on " TC_STR_RELEASE_DATE

Definition at line 434 of file Tcdefs.h.

◆ TC_THROW_FATAL_EXCEPTION

#define TC_THROW_FATAL_EXCEPTION   *(char *) 0 = 0

Definition at line 230 of file Tcdefs.h.

◆ TC_TO_STRING

#define TC_TO_STRING (   n)    TC_TO_STRING2(n)

Definition at line 355 of file Tcdefs.h.

◆ TC_TO_STRING2

#define TC_TO_STRING2 (   n)    #n

defined(_UEFI)

Definition at line 354 of file Tcdefs.h.

◆ TCalloc

#define TCalloc   malloc

Definition at line 328 of file Tcdefs.h.

◆ TCfree

#define TCfree   free

Definition at line 329 of file Tcdefs.h.

◆ trace_msg

#define trace_msg (   ...)

Definition at line 386 of file Tcdefs.h.

◆ trace_point

#define trace_point

Definition at line 387 of file Tcdefs.h.

◆ TRUE

#define TRUE   1

Definition at line 145 of file Tcdefs.h.

◆ VC_MAX

#define VC_MAX (   a,
  b 
)    ((a)>(b))?(a):(b)

Definition at line 84 of file Tcdefs.h.

◆ VC_MIN

#define VC_MIN (   a,
  b 
)    ((a)<(b))?(a):(b)

Definition at line 85 of file Tcdefs.h.

◆ VERSION_NUM

#define VERSION_NUM   0x0124

Definition at line 67 of file Tcdefs.h.

◆ VERSION_STRING

#define VERSION_STRING   "1.24-Update6"

Definition at line 58 of file Tcdefs.h.

◆ VERSION_STRING_SUFFIX

#define VERSION_STRING_SUFFIX   ""

Definition at line 63 of file Tcdefs.h.

◆ volatile_memcpy

#define volatile_memcpy (   d,
  s,
  size 
)    do { volatile char *destm = (volatile char *)(d); volatile char *srcm = (volatile char *)(s); size_t memc = size; while (memc--) *destm++ = *srcm++; } while (0)

Definition at line 405 of file Tcdefs.h.

◆ WIDE

#define WIDE (   x)    (LPWSTR)L##x

Definition at line 82 of file Tcdefs.h.

Typedef Documentation

◆ byte

typedef uint8_t byte

Definition at line 118 of file Tcdefs.h.

◆ int16

typedef int16_t int16

Definition at line 115 of file Tcdefs.h.

◆ int32

typedef int32_t int32

Definition at line 116 of file Tcdefs.h.

◆ int64

typedef int64_t int64

Definition at line 117 of file Tcdefs.h.

◆ int8

typedef int8_t int8

Definition at line 114 of file Tcdefs.h.

◆ TC_LARGEST_COMPILER_UINT

Definition at line 140 of file Tcdefs.h.

◆ uint16

typedef uint16_t uint16

Definition at line 119 of file Tcdefs.h.

◆ uint32

typedef uint32_t uint32

Definition at line 120 of file Tcdefs.h.

◆ uint64

typedef uint64_t uint64

Definition at line 121 of file Tcdefs.h.

◆ uint_16t

typedef unsigned short uint_16t

Definition at line 154 of file Tcdefs.h.

◆ uint_32t

typedef unsigned int uint_32t

Definition at line 155 of file Tcdefs.h.

◆ uint_64t

typedef uint64 uint_64t

Definition at line 157 of file Tcdefs.h.

◆ uint_8t

typedef unsigned char uint_8t

Definition at line 153 of file Tcdefs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ERR_SUCCESS 
ERR_OS_ERROR 
ERR_OUTOFMEMORY 
ERR_PASSWORD_WRONG 
ERR_VOL_FORMAT_BAD 
ERR_DRIVE_NOT_FOUND 
ERR_FILES_OPEN 
ERR_VOL_SIZE_WRONG 
ERR_COMPRESSION_NOT_SUPPORTED 
ERR_PASSWORD_CHANGE_VOL_TYPE 
ERR_PASSWORD_CHANGE_VOL_VERSION 
ERR_VOL_SEEKING 
ERR_VOL_WRITING 
ERR_FILES_OPEN_LOCK 
ERR_VOL_READING 
ERR_DRIVER_VERSION 
ERR_NEW_VERSION_REQUIRED 
ERR_CIPHER_INIT_FAILURE 
ERR_CIPHER_INIT_WEAK_KEY 
ERR_SELF_TESTS_FAILED 
ERR_SECTOR_SIZE_INCOMPATIBLE 
ERR_VOL_ALREADY_MOUNTED 
ERR_NO_FREE_DRIVES 
ERR_FILE_OPEN_FAILED 
ERR_VOL_MOUNT_FAILED 
DEPRECATED_ERR_INVALID_DEVICE 
ERR_ACCESS_DENIED 
ERR_MODE_INIT_FAILED 
ERR_DONT_REPORT 
ERR_ENCRYPTION_NOT_COMPLETED 
ERR_PARAMETER_INCORRECT 
ERR_SYS_HIDVOL_HEAD_REENC_MODE_WRONG 
ERR_NONSYS_INPLACE_ENC_INCOMPLETE 
ERR_USER_ABORT 
ERR_UNSUPPORTED_TRUECRYPT_FORMAT 
ERR_RAND_INIT_FAILED 
ERR_CAPI_INIT_FAILED 

Definition at line 441 of file Tcdefs.h.