VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Format.c
AgeCommit message (Expand)AuthorFilesLines
2016-09-11Windows: in case of In-Place encryption, encrypt random data instead of exist...Mounir IDRASSI1-1/+1
2016-08-15Windows: fill unused/reserved header areas with the result of encryption of r...Mounir IDRASSI1-1/+1
2016-08-15Windows: align buffers used for keys to avoid issues when SSE used.Mounir IDRASSI1-2/+2
2016-08-15Windows: Fix vulnerability inherited from TrueCrypt that allows an attacker t...Mounir IDRASSI1-0/+53
2016-05-10Remove trailing whitespaceDavid Foerster1-41/+41
2016-05-10Normalize all line terminatorsDavid Foerster1-1054/+1054
2016-02-07Windows:Fix various issues and warnings reported by static code analysis tool...Mounir IDRASSI1-6/+6
2016-01-27Windows/Linux: Implement exFAT support.Mounir IDRASSI1-6/+26
2016-01-20Copyright: update dates to include 2016.Mounir IDRASSI1-1/+1
2015-12-21Windows: Implement PIM caching, both for system encryption and for normal vol...Mounir IDRASSI1-1/+1
2015-11-26Windows: Full UNICODE rewrite and implement support for UNICODE passwords.Mounir IDRASSI1-14/+13
2015-09-16Windows: first implementation of CLI support for creating volumes.Mounir IDRASSI1-9/+15
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 an...Mounir IDRASSI1-7/+9
2015-07-11Use Pim name for internal variables instead of the old name PinMounir IDRASSI1-3/+3
2015-07-06Windows: better logic for FormatEx function call. To be replaced in the futur...Mounir IDRASSI1-9/+61
2015-07-06Windows: Display source location of errors in order to help diagnose issues r...Mounir IDRASSI1-3/+7
2015-05-29Windows: workaround FormatEx keeping references on formatted volume by adding...Mounir IDRASSI1-3/+3
2015-05-26Windows: first implementation of dynamic modeMounir IDRASSI1-1/+3
2014-12-28Windows: support loading TrueCrypt volumes. Implement converting TrueCrypt vo...Mounir IDRASSI1-1/+1
2014-12-27Windows: use the correct window handle for creating message boxes. This becam...Mounir IDRASSI1-14/+15
2014-12-16Windows: Enhance performance by implementing the possibility to choose the co...Mounir IDRASSI1-1/+1
2014-11-08Static Code Analysis : Generalize the use of Safe String functions. Add some ...Mounir IDRASSI1-6/+8
2014-11-08Static Code Analysis : fix non-absolute DLL/process loads that can be hijacke...Mounir IDRASSI1-1/+11
2014-11-08Add original TrueCrypt 7.1a sourcesMounir IDRASSI1-0/+1010
an class="n">password, size_t size); VolumePassword (const wchar_t *password, size_t charCount); VolumePassword (const wstring &password); VolumePassword (const VolumePassword &password) { Set (password); } virtual ~VolumePassword (); bool operator== (const VolumePassword &other) const { return ConstBufferPtr (DataPtr(), Size()).IsDataEqual (ConstBufferPtr (other.DataPtr(), other.Size())); } bool operator!= (const VolumePassword &other) const { return !(*this == other); } VolumePassword &operator= (const VolumePassword &password) { Set (password); return *this; } operator BufferPtr () const { return BufferPtr (PasswordBuffer); } void CheckPortability () const; byte *DataPtr () const { return PasswordBuffer; } bool IsEmpty () const { return PasswordSize == 0; } size_t Size () const { return PasswordSize; } void Set (const byte *password, size_t size); void Set (const wchar_t *password, size_t charCount); void Set (const ConstBufferPtr &password); void Set (const VolumePassword &password); TC_SERIALIZABLE (VolumePassword); static const size_t MaxSize = 64; static const size_t WarningSizeThreshold = 12; protected: void AllocateBuffer (); bool IsPortable () const; SecureBuffer PasswordBuffer; size_t PasswordSize; bool Unportable; }; struct PasswordException : public Exception { protected: PasswordException () { } PasswordException (const string &message) : Exception (message) { } PasswordException (const string &message, const wstring &subject) : Exception (message, subject) { } }; TC_EXCEPTION_DECL (PasswordIncorrect, PasswordException); TC_EXCEPTION_DECL (PasswordKeyfilesIncorrect, PasswordIncorrect); TC_EXCEPTION_DECL (PasswordOrKeyboardLayoutIncorrect, PasswordException); TC_EXCEPTION_DECL (PasswordOrMountOptionsIncorrect, PasswordException); TC_EXCEPTION_DECL (ProtectionPasswordIncorrect, PasswordIncorrect); TC_EXCEPTION_DECL (ProtectionPasswordKeyfilesIncorrect, PasswordIncorrect); #define TC_EXCEPTION(NAME) TC_EXCEPTION_DECL(NAME,PasswordException) #undef TC_EXCEPTION_SET #define TC_EXCEPTION_SET \ TC_EXCEPTION_NODECL (PasswordIncorrect); \ TC_EXCEPTION_NODECL (PasswordKeyfilesIncorrect); \ TC_EXCEPTION_NODECL (PasswordOrKeyboardLayoutIncorrect); \ TC_EXCEPTION_NODECL (PasswordOrMountOptionsIncorrect); \ TC_EXCEPTION_NODECL (ProtectionPasswordIncorrect); \ TC_EXCEPTION_NODECL (ProtectionPasswordKeyfilesIncorrect); \ TC_EXCEPTION (PasswordEmpty); \ TC_EXCEPTION (PasswordTooLong); \ TC_EXCEPTION (UnportablePassword); TC_EXCEPTION_SET; #undef TC_EXCEPTION } #endif // TC_HEADER_Encryption_Password