VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/FormatCom.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-18 16:05:52 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-18 16:05:52 +0200
commitd5e7426181ac7b551b98860154bbbd9053c2a059 (patch)
tree9c70c3b400d2c730340791ce2bbba935c4939f35 /src/Format/FormatCom.cpp
parent41819270bbb7129a5568125a6b0cbfdf719680bd (diff)
parent647a7e047adcb9ec7ba19df7ddeff3d79664fcfb (diff)
downloadVeraCrypt-d5e7426181ac7b551b98860154bbbd9053c2a059.tar.gz
VeraCrypt-d5e7426181ac7b551b98860154bbbd9053c2a059.zip
Merge pull request #27 from Zhangjintao/master
Update Language.zh-cn.xml (By zhangjintao)
Diffstat (limited to 'src/Format/FormatCom.cpp')
0 files changed, 0 insertions, 0 deletions
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
/** @file
This is DCS configuration tool. (EFI shell application/wizard)

Copyright (c) 2016. Disk Cryptography Services for EFI (DCS), Alex Kolotnikov
Copyright (c) 2016. VeraCrypt, Mounir IDRASSI 

This program and the accompanying materials
are licensed and made available under the terms and conditions
of the GNU Lesser General Public License, version 3.0 (LGPL-3.0).

The full text of the license may be found at
https://opensource.org/licenses/LGPL-3.0
**/

#ifndef __DcsCfg_h__
#define __DcsCfg_h__

#include <Uefi.h>
#include <Uefi/UefiGpt.h>

//////////////////////////////////////////////////////////////////////////
// Block I/O
//////////////////////////////////////////////////////////////////////////
extern UINTN             BioIndexStart;
extern UINTN             BioIndexEnd;
extern BOOLEAN           BioSkipPartitions;

void
BioPrintDevicePath(
	UINTN bioIndex
	);

VOID
PrintBioList();

EFI_STATUS
BlockRangeWipe(
	IN EFI_HANDLE h,
	IN UINT64 start,
	IN UINT64 end
	);

//////////////////////////////////////////////////////////////////////////
// System crypt
//////////////////////////////////////////////////////////////////////////
EFI_STATUS
VolumeEncrypt(
	IN UINTN index);

EFI_STATUS
VolumeDecrypt(
	IN UINTN index);

EFI_STATUS
OSRestoreKey();

EFI_STATUS
OSDecrypt();

EFI_STATUS
VolumeChangePassword(
	IN UINTN index);

EFI_STATUS
CreateVolumeHeaderOnDisk(
	IN UINTN          index,
	OUT VOID          **pinfo,
	OUT EFI_HANDLE    *phDisk,
	OUT UINT64        *sector
	);

EFI_STATUS
GptCryptFile(
	IN BOOLEAN  crypt
	);

EFI_STATUS
GptEdit(
	IN UINTN index
	);

EFI_STATUS
OuterInit();

//////////////////////////////////////////////////////////////////////////
// Security regions
//////////////////////////////////////////////////////////////////////////
extern UINTN gSecRigonCount;

EFI_STATUS
SecRigionMark();

EFI_STATUS
SecRigionWipe();

EFI_STATUS
SecRigionAdd(
	IN UINTN       regIdx
	);

EFI_STATUS
SecRigionDump(
	IN EFI_HANDLE   hBio,
	IN CHAR16       *prefix
	);

//////////////////////////////////////////////////////////////////////////
// Set DcsInt parameters
//////////////////////////////////////////////////////////////////////////
VOID
UpdateDcsBoot();

//////////////////////////////////////////////////////////////////////////
// DCS authorization check
//////////////////////////////////////////////////////////////////////////

EFI_STATUS 
IntCheckVolume(
	UINTN index
	);

VOID
DisksAuthCheck();

VOID
TestAuthAsk();


//////////////////////////////////////////////////////////////////////////
// RUD / USB
//////////////////////////////////////////////////////////////////////////
extern UINTN             UsbIndex;

VOID
PrintUsbList();

EFI_STATUS
UsbScApdu(
	IN CHAR16* hexString);

//////////////////////////////////////////////////////////////////////////
// Beep
//////////////////////////////////////////////////////////////////////////
VOID
PrintSpeakerList();

VOID
TestSpeaker();

//////////////////////////////////////////////////////////////////////////
// Graphics
//////////////////////////////////////////////////////////////////////////
VOID
PrintGraphList();

//////////////////////////////////////////////////////////////////////////
// Touch
//////////////////////////////////////////////////////////////////////////
extern UINTN       TouchIndex;

VOID
PrintTouchList();

VOID
TestTouch();

//////////////////////////////////////////////////////////////////////////
// Interactive setup
//////////////////////////////////////////////////////////////////////////

EFI_STATUS
DcsInteractiveSetup();

//////////////////////////////////////////////////////////////////////////
// TPM
//////////////////////////////////////////////////////////////////////////
EFI_STATUS
Tpm12ListPcrs(
	UINT32 sPcr,
	UINT32 ePcr
	);

EFI_STATUS
Tpm12NvList();

EFI_STATUS
Tpm12DcsConfigure();

#endif // DcsCfg_h__