diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-10-02 00:21:52 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-10-02 00:21:52 +0000 |
commit | 4f88a2a8cb4f04410d8816ff0f1daf9fdc462052 (patch) | |
tree | 1b073471381e954e7db43d60448a3713dfbe22d4 | |
parent | 64919ba4241c646c7c62cfceda742a2c28195a36 (diff) | |
download | cryptopp-4f88a2a8cb4f04410d8816ff0f1daf9fdc462052.tar.gz |
reduce executable size when only hash functions are used
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@411 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rwxr-xr-x | cryptdll.vcproj | 8 | ||||
-rwxr-xr-x | cryptlib.vcproj | 8 | ||||
-rw-r--r-- | iterhash.cpp | 7 | ||||
-rw-r--r-- | iterhash.h | 8 |
4 files changed, 15 insertions, 16 deletions
diff --git a/cryptdll.vcproj b/cryptdll.vcproj index c3d123d..2407d5c 100755 --- a/cryptdll.vcproj +++ b/cryptdll.vcproj @@ -1492,6 +1492,7 @@ Name="VCCLCompilerTool" Optimization="1" PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;CRYPTOPP_EXPORTS;CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2=1;USE_PRECOMPILED_HEADERS;$(NoInherit)" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -1501,6 +1502,7 @@ Name="VCCLCompilerTool" Optimization="1" PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;CRYPTOPP_EXPORTS;CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2=1;USE_PRECOMPILED_HEADERS;$(NoInherit)" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -1511,6 +1513,7 @@ Optimization="0" PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;CRYPTOPP_EXPORTS;CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2=1;USE_PRECOMPILED_HEADERS;$(NoInherit)" BasicRuntimeChecks="3" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -1521,6 +1524,7 @@ Optimization="0" PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;CRYPTOPP_EXPORTS;CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2=1;USE_PRECOMPILED_HEADERS;$(NoInherit)" BasicRuntimeChecks="3" + UsePrecompiledHeader="0" /> </FileConfiguration> </File> @@ -2384,7 +2388,7 @@ > <Tool Name="VCCustomBuildTool" - CommandLine="ml64.exe /c /nologo /Fo"$(IntDir)\x64masm.obj" /Zi $(InputPath)" + CommandLine="ml64.exe /c /nologo /Fo"$(IntDir)\x64masm.obj" /Zi $(InputPath)
" Outputs="$(IntDir)\x64masm.obj" /> </FileConfiguration> @@ -2393,7 +2397,7 @@ > <Tool Name="VCCustomBuildTool" - CommandLine="ml64.exe /c /nologo /Fo"$(IntDir)\x64masm.obj" /Zi $(InputPath)" + CommandLine="ml64.exe /c /nologo /Fo"$(IntDir)\x64masm.obj" /Zi $(InputPath)
" Outputs="$(IntDir)\x64masm.obj" /> </FileConfiguration> diff --git a/cryptlib.vcproj b/cryptlib.vcproj index 80af295..7361df9 100755 --- a/cryptlib.vcproj +++ b/cryptlib.vcproj @@ -4255,6 +4255,7 @@ <Tool Name="VCCLCompilerTool" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4263,6 +4264,7 @@ <Tool Name="VCCLCompilerTool" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4272,6 +4274,7 @@ Name="VCCLCompilerTool" Optimization="2" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4281,6 +4284,7 @@ Name="VCCLCompilerTool" Optimization="2" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4290,6 +4294,7 @@ Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4299,6 +4304,7 @@ Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4308,6 +4314,7 @@ Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> <FileConfiguration @@ -4317,6 +4324,7 @@ Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="" + UsePrecompiledHeader="0" /> </FileConfiguration> </File> diff --git a/iterhash.cpp b/iterhash.cpp index 73bbf98..273e034 100644 --- a/iterhash.cpp +++ b/iterhash.cpp @@ -1,9 +1,6 @@ // iterhash.cpp - written and placed in the public domain by Wei Dai -#include "pch.h" - -// prevent Sun's CC compiler from including this file automatically -#if !defined(__SUNPRO_CC) || defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) +#define CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES #include "iterhash.h" #include "misc.h" @@ -146,5 +143,3 @@ template <class T, class BASE> void IteratedHashBase<T, BASE>::TruncatedFinal(by } NAMESPACE_END - -#endif @@ -93,14 +93,6 @@ protected: FixedSizeSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType)> m_state; }; -NAMESPACE_END - -#ifdef CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES -#include "iterhash.cpp" -#endif - -NAMESPACE_BEGIN(CryptoPP) - #ifdef WORD64_AVAILABLE CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word64, HashTransformation>; CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>; |