VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/AboutDialog.cpp
blob: 9eaa4eb1df5e828642222f1460c87b9f9bbea68c (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 Copyright (c) 2008-2009 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.
*/

#include "System.h"
#include "Volume/Version.h"
#include "Main/Application.h"
#include "Main/GraphicUserInterface.h"
#include "Main/Resources.h"
#include "AboutDialog.h"

namespace VeraCrypt
{
	AboutDialog::AboutDialog (wxWindow* parent) : AboutDialogBase (parent)
	{
		LogoBitmap->SetBitmap (Resources::GetTextualLogoBitmap());

		wxFont versionStaticTextFont = VersionStaticText->GetFont();
		versionStaticTextFont.SetWeight (wxFONTWEIGHT_BOLD);
		VersionStaticText->SetFont (versionStaticTextFont);

		VersionStaticText->SetLabel (Application::GetName() + L" " + StringConverter::ToWide (Version::String()));
		CopyrightStaticText->SetLabel (StringConverter::ToWide (TC_STR_RELEASED_BY));
		WebsiteHyperlink->SetLabel (L"www.idrix.fr");

		CreditsTextCtrl->SetMinSize (wxSize (
			Gui->GetCharWidth (CreditsTextCtrl) * 70,
			Gui->GetCharHeight (CreditsTextCtrl) * 6
#ifdef TC_WINDOWS
			- 5
#else
			- 11
#endif
			));

		Layout();
		Fit();
		Center();

		CreditsTextCtrl->ChangeValue (
			L"Portions of this software are based in part on the works of the following people: "
			L"Paul Le Roux, "
			L"Bruce Schneier, John Kelsey, Doug Whiting, David Wagner, Chris Hall, Niels Ferguson, "
			L"Lars Knudsen, Ross Anderson, Eli Biham, "
			L"Joan Daemen, Vincent Rijmen, "
			L"Phillip Rogaway, "
			L"Hans Dobbertin, Antoon Bosselaers, Bart Preneel, "
			L"Paulo Barreto, Brian Gladman, Wei Dai, Peter Gutmann, and many others.\n\n"

			L"Portions of this software:\n"
			L"Copyright \xA9 2003-2012 TrueCrypt Developers Association. All Rights Reserved.\n"
			L"Copyright \xA9 1998-2000 Paul Le Roux. All Rights Reserved.\n"
			L"Copyright \xA9 1998-2008 Brian Gladman. All Rights Reserved.\n"

			L"\nThis software as a whole:\n"
			L"Copyright \xA9 2014 IDRIX. All rights reserved.\n\n"

			L"This software uses wxWidgets library, which is copyright \xA9 1998-2011 Julian Smart, Robert Roebling et al.\n\n"

			L"An IDRIX Release");
	}
}
span class="k">const void *memory1, size_t size1, const void *memory2, size_t size2); static void Copy (void *memoryDestination, const void *memorySource, size_t size); static void Erase (void *memory, size_t size); static void Free (void *memory); static void Zero (void *memory, size_t size); }; class Endian { public: static byte Big (const byte &x) { return x; } static uint16 Big (const uint16 &x) { #if BYTE_ORDER == BIG_ENDIAN return x; #else return MirrorBytes (x); #endif } static uint32 Big (const uint32 &x) { #if BYTE_ORDER == BIG_ENDIAN return x; #else return MirrorBytes (x); #endif } static uint64 Big (const uint64 &x) { #if BYTE_ORDER == BIG_ENDIAN return x; #else return MirrorBytes (x); #endif } static byte Little (const byte &x) { return x; } static uint16 Little (const uint16 &x) { #if BYTE_ORDER == LITTLE_ENDIAN return x; #else return MirrorBytes (x); #endif } static uint32 Little (const uint32 &x) { #if BYTE_ORDER == LITTLE_ENDIAN return x; #else return MirrorBytes (x); #endif } static uint64 Little (const uint64 &x) { #if BYTE_ORDER == LITTLE_ENDIAN return x; #else return MirrorBytes (x); #endif } protected: static uint16 MirrorBytes (const uint16 &x) { return (x << 8) | (x >> 8); } static uint32 MirrorBytes (const uint32 &x) { uint32 n = (byte) x; n <<= 8; n |= (byte) (x >> 8); n <<= 8; n |= (byte) (x >> 16); return (n << 8) | (byte) (x >> 24); } static uint64 MirrorBytes (const uint64 &x) { uint64 n = (byte) x; n <<= 8; n |= (byte) (x >> 8); n <<= 8; n |= (byte) (x >> 16); n <<= 8; n |= (byte) (x >> 24); n <<= 8; n |= (byte) (x >> 32); n <<= 8; n |= (byte) (x >> 40); n <<= 8; n |= (byte) (x >> 48); return (n << 8) | (byte) (x >> 56); } }; } #endif // TC_HEADER_Platform_Memory