From b87fc6b140772ba3017de311c7063c259424264c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 15 Aug 2016 17:11:31 +0200 Subject: First public release. Used by VeraCrypt 1.18. --- Library/VeraCryptLib/DcsVeraCrypt.h | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Library/VeraCryptLib/DcsVeraCrypt.h (limited to 'Library/VeraCryptLib/DcsVeraCrypt.h') diff --git a/Library/VeraCryptLib/DcsVeraCrypt.h b/Library/VeraCryptLib/DcsVeraCrypt.h new file mode 100644 index 0000000..aae0152 --- /dev/null +++ b/Library/VeraCryptLib/DcsVeraCrypt.h @@ -0,0 +1,84 @@ +/** @file +Interface for DCS services + +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 Apache License, Version 2.0. + +The full text of the license may be found at +https://opensource.org/licenses/Apache-2.0 +**/ + +#ifndef __DCSVERACRYPT_H__ +#define __DCSVERACRYPT_H__ + +#include +#include +#include + +////////////////////////////////////////////////////////////////////////// +// Auth +////////////////////////////////////////////////////////////////////////// +extern int gAuthPasswordType; +extern CHAR16* gPasswordPictureFileName; +extern char* gAuthPasswordMsg; +extern Password gAuthPassword; + +extern char* gAuthPimMsg; +extern int gAuthPimRqt; +extern int gAuthPim; + +extern int gAuthTcRqt; +extern int gAuthTc; + +extern char *gAuthHashMsg; +extern int gAuthHashRqt; +extern int gAuthHash; + +extern int gAuthBootRqt; +extern int gAuthBoot; + +extern int gAuthRetry; +extern INT32 gRUD; + +extern int gAuthSecRegionSearch; + +extern int gPlatformLocked; +extern int gTPMLocked; +extern int gSCLocked; + +extern int gAuthPwdCode; + +extern CHAR8* gPlatformKeyFile; +extern UINTN gPlatformKeyFileSize; + +extern EFI_GUID *gPartitionGuidOS; +extern int gDcsBootForce; + +extern CHAR8* gOnExitFailed; +extern CHAR8* gOnExitSuccess; +extern CHAR8* gOnExitNotFound; + +void +VCAuthAsk(); + +VOID +VCAskPwd( + IN UINTN pwdType, + OUT Password* vcPwd); + +VOID +VCAuthLoadConfig(); + +VOID +ApplyKeyFile( + IN OUT Password* password, + IN CHAR8* keyfileData, + IN UINTN keyfileDataSize + ); + +#endif + -- cgit v1.2.3