/* Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. Governed by the TrueCrypt License 3.0 the full text of which is contained in the file License.txt included in TrueCrypt binary and source code distribution packages. */ #ifndef TC_HEADER_Platform_Mutex #define TC_HEADER_Platform_Mutex #ifdef TC_WINDOWS # include "System.h" #else # include #endif #include "PlatformBase.h" namespace VeraCrypt { class Mutex { #ifdef TC_WINDOWS typedef CRITICAL_SECTION SystemMutex_t; #else typedef pthread_mutex_t SystemMutex_t; #endif public: Mutex (); ~Mutex (); SystemMutex_t *GetSystemHandle () { return &SystemMutex; } void Lock (); void Unlock (); protected: bool Initialized; SystemMutex_t SystemMutex; private: Mutex (const Mutex &); Mutex &operator= (const Mutex &); }; class ScopeLock { public: ScopeLock (Mutex &mutex) : ScopeMutex (mutex) { mutex.Lock(); } ~ScopeLock () { ScopeMutex.Unlock(); } protected: Mutex &ScopeMutex; private: ScopeLock (const ScopeLock &); ScopeLock &operator= (const ScopeLock &); }; } #endif // TC_HEADER_Platform_Mutex
  • Donate
  • Forums
  • aboutsummaryrefslogtreecommitdiff
    blob: a33ef25e47c23e1bc035729983d77a74e7fd3690 (plain)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>VeraCrypt - Free Open source disk encryption with strong security for the Paranoid</title>
    <meta name="description" content="VeraCrypt is free open-source disk encryption software for Windows, Mac OS X and Linux. In case an attacker forces you to reveal the password, VeraCrypt provides plausible deniability. In contrast to file encryption, data encryption performed by VeraCrypt is real-time (on-the-fly), automatic, transparent, needs very little memory, and does not involve temporary unencrypted files."/>
    <meta name="keywords" content="encryption, security"/>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    
    <div>                      
    <a href="https://www.veracrypt.fr/en/Home.html"><img src="VeraCrypt128x128.png" alt="VeraCrypt"/></a>
    </div>
    
    <div id="menu">
    	<ul>
    	  <li><a href="Home.html">Home</a></li>
    	  <li><a href="/code/">Source Code</a></li>
    	  <li><a href="Downloads.html">Downloads</a></li>
    	  <li><a class="active" href="Documentation.html">Documentation</a></li>
    	  <li><a href="Donation.html">Donate</a></li>
    	  <li><a href="https://sourceforge.net/p/veracrypt/discussion/" target="_blank">Forums</a></li>
    	</ul>
    </div>
    
    <div>
    <p>
    <a href="Documentation.html">Documentation</a>           
    <img src="arrow_right.gif" alt=">>" style="margin-top: 5px">
    <a href="VeraCrypt%20Volume.html">VeraCrypt Volume</a>
    </p></div>
    
    <div class="wikidoc">
    <h1>VeraCrypt Volume</h1>
    <p>There are two types of VeraCrypt volumes:</p>
    <ul>
    <li>File-hosted (container) </li><li>Partition/device-hosted (non-system) </li></ul>
    <p>Note: In addition to creating the above types of virtual volumes, VeraCrypt can encrypt a physical partition/drive where Windows is installed (for more information, see the chapter
    <a href="System%20Encryption.html"><em>System Encryption</em></a>).<br>
    <br>
    A VeraCrypt file-hosted volume is a normal file, which can reside on any type of storage device. It contains (hosts) a completely independent encrypted virtual disk device.<br>
    <br>
    A VeraCrypt partition is a hard disk partition encrypted using VeraCrypt. You can also encrypt entire hard disks, USB hard disks, USB memory sticks, and other types of storage devices.</p>
    <p><a href="Creating%20New%20Volumes.html" style="text-align:left; color:#0080c0; text-decoration:none; font-weight:bold.html">Next Section &gt;&gt;</a></p>
    </div>
    </body></html>