VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Crypto.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-09-04 17:21:11 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:23:19 +0100
commitf7d783dda8405cb2c930932749ee187d127eddf2 (patch)
treeac8eb34eae968da2597cc7099115a313879b5854 /src/Common/Crypto.h
parentccbc2cff0bf76f1f0d62e1778e83342e526e5eed (diff)
downloadVeraCrypt-f7d783dda8405cb2c930932749ee187d127eddf2.tar.gz
VeraCrypt-f7d783dda8405cb2c930932749ee187d127eddf2.zip
Adapt certain functions in the case of Windows bootloader in order to make its size as small as possible.
Diffstat (limited to 'src/Common/Crypto.h')
-rw-r--r--src/Common/Crypto.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h
index ac925094..651da737 100644
--- a/src/Common/Crypto.h
+++ b/src/Common/Crypto.h
@@ -250,7 +250,11 @@ int CipherGetBlockSize (int cipher);
int CipherGetKeySize (int cipher);
int CipherGetKeyScheduleSize (int cipher);
BOOL CipherSupportsIntraDataUnitParallelization (int cipher);
-const char * CipherGetName (int cipher);
+
+#ifndef TC_WINDOWS_BOOT
+const
+#endif
+char * CipherGetName (int cipher);
int CipherInit (int cipher, unsigned char *key, unsigned char *ks);
int EAInit (int ea, unsigned char *key, unsigned char *ks);
@@ -283,7 +287,11 @@ int EAGetPreviousCipher (int ea, int previousCipherId);
int EAIsFormatEnabled (int ea);
BOOL EAIsModeSupported (int ea, int testedMode);
-const char *HashGetName (int hash_algo_id);
+
+#ifndef TC_WINDOWS_BOOT
+const
+#endif
+char *HashGetName (int hash_algo_id);
BOOL HashIsDeprecated (int hashId);
int GetMaxPkcs5OutSize (void);