ext-cryptopp/cryptest.vcxproj

378 lines
17 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Microsoft documentation for VCXPROJ file format is located at -->
<!-- the following URL. The documentation leaves a lot to be desired. -->
<!-- https://msdn.microsoft.com/en-us/library/2208a1f2.aspx -->
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DLL-Import Debug|Win32">
<Configuration>DLL-Import Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DLL-Import Debug|x64">
<Configuration>DLL-Import Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DLL-Import Release|Win32">
<Configuration>DLL-Import Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DLL-Import Release|x64">
<Configuration>DLL-Import Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<!-- Microsoft documentation clearly shows the Global property group -->
<!-- preceeds the import of Cpp.Default.props and Cpp.props -->
<!-- https://msdn.microsoft.com/en-us/library/2208a1f2.aspx -->
<PropertyGroup Label="Globals">
<ProjectGuid>{09cdac08-e6ae-48a9-8de7-0fbc779eebde}</ProjectGuid>
<RootNamespace>cryptest</RootNamespace>
<ConfigurationType>Application</ConfigurationType>
</PropertyGroup>
<!-- Use DefaultPlatformToolset after Microsoft.Cpp.Default.props -->
2016-10-05 22:18:04 +00:00
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<!-- Set DefaultPlatformToolset to v100 (VS2010) if not defined -->
<PropertyGroup Label="EmptyDefaultPlatformToolset">
<DefaultPlatformToolset Condition=" '$(DefaultPlatformToolset)' == '' ">v100</DefaultPlatformToolset>
</PropertyGroup>
<PropertyGroup Label="PlatformToolset">
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup>
2016-10-05 22:18:04 +00:00
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<!-- End of Visual Studio boilerplate -->
<!-- All Configurations -->
<PropertyGroup Label="All Configurations">
<ConfigurationType>Application</ConfigurationType>
2016-10-05 22:18:04 +00:00
<TargetName>cryptest</TargetName>
<TargetExt>.exe</TargetExt>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
2016-10-05 22:18:04 +00:00
<!-- Intermediate and Output directories -->
<!-- Cryptlib and Cryptest need extra care due to Non-DLL/DLL configs -->
<PropertyGroup Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'" Label="Non-DLL Directories">
<OutDir>$(Platform)\Output\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
2016-10-05 22:18:04 +00:00
<PropertyGroup Condition="'$(Configuration)'=='DLL-Import Debug'" Label="DLL Directories">
<OutDir>$(Platform)\DLL_Output\Debug\</OutDir>
<IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
2016-10-05 22:18:04 +00:00
<PropertyGroup Condition="'$(Configuration)'=='DLL-Import Release'" Label="DLL Directories">
<OutDir>$(Platform)\DLL_Output\Release\</OutDir>
<IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
2016-10-05 22:18:04 +00:00
<!-- All Configurations -->
<ItemDefinitionGroup Label="All Configurations">
<ClCompile>
<SuppressStartupBanner>true</SuppressStartupBanner>
2016-10-05 22:18:04 +00:00
<ErrorReporting>None</ErrorReporting>
2016-10-02 19:20:55 +00:00
<WarningLevel>Level4</WarningLevel>
<DisableSpecificWarnings>4231; 4251; 4275; 4355; 4505</DisableSpecificWarnings>
2016-10-05 22:18:04 +00:00
<PrecompiledHeader />
<PrecompiledHeadeFile />
<AdditionalOptions>$(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
2016-10-05 22:18:04 +00:00
<ErrorReporting>NoErrorReport</ErrorReporting>
<AdditionalDependencies>cryptlib.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>$(Platform)\Output\$(Configuration)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>
2016-10-05 22:18:04 +00:00
<ProgramDatabaseFile>$(OutDir)\cryptlib.pdb</ProgramDatabaseFile>
<OutputFile>$(OutDir)\cryptest.exe</OutputFile>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- Debug Configurations -->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='DLL-Import Debug'" Label="Debug Configuration">
<ClCompile>
2016-10-05 22:18:04 +00:00
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization>Disabled</Optimization>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
2016-10-05 22:18:04 +00:00
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- Release Configurations -->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='DLL-Import Release'" Label="Release Configuration">
<ClCompile>
2016-10-05 22:18:04 +00:00
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<OmitFramePointers>true</OmitFramePointers>
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
2016-10-05 22:18:04 +00:00
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FunctionLevelLinking>true</FunctionLevelLinking>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<ResourceCompile>
2016-10-05 22:18:04 +00:00
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- DLL-Import Overrides for Preprocessor and Libraries -->
<ItemDefinitionGroup Condition="'$(Configuration)'=='DLL-Import Debug'" Label="DLL Debug Configuration">
<ClCompile>
<PreprocessorDefinitions>CRYPTOPP_IMPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>$(Platform)\DLL_Output\Debug</AdditionalLibraryDirectories>
<AdditionalDependencies>cryptopp.lib;cryptlib.lib</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<ItemDefinitionGroup Condition="'$(Configuration)'=='DLL-Import Release'" Label="DLL Debug Configuration">
<ClCompile>
2016-10-05 22:18:04 +00:00
<PreprocessorDefinitions>NDEBUG;CRYPTOPP_IMPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
2016-10-05 22:18:04 +00:00
<AdditionalLibraryDirectories>$(Platform)\DLL_Output\Release</AdditionalLibraryDirectories>
<AdditionalDependencies>cryptopp.lib;cryptlib.lib</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- X86 Configurations -->
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'" Label="X86 Configuration">
<ClCompile>
2016-10-05 22:18:04 +00:00
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
</ClCompile>
<Link>
2016-10-05 22:18:04 +00:00
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>true</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- X64 Configurations -->
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'" Label="X64 Configuration">
<Link>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
2016-10-05 22:18:04 +00:00
<!-- FIPS Validated Warning -->
<ItemDefinitionGroup Label="FIPS Warning">
<PreBuildEvent Condition="'$(Configuration)'=='DLL-Import Debug' Or '$(Configuration)'=='DLL-Import Release'">
<Command>
2016-10-05 22:30:18 +00:00
echo *************************************************************************
echo This configuration requires cryptopp.dll. You can build it yourself using
echo the cryptdll project, or obtain a pre-built, FIPS 140-2 validated DLL. If
echo you build it yourself the resulting DLL will not be considered FIPS
echo validated unless it undergoes the FIPS validation process.
echo *************************************************************************
</Command>
2016-10-05 22:18:04 +00:00
</PreBuildEvent>
</ItemDefinitionGroup>
<!-- Target for Appvoyer -->
<!-- The rule copies cryptest.exe to the project -->
<!-- root directory so it can be executed in place -->
<Target Name="CopyCryptestToRoot">
<Exec Command="copy $(Platform)\Output\$(Configuration)\cryptest.exe $(SolutionDir)" />
</Target>
2016-10-05 22:18:04 +00:00
<!-- Source Files -->
<ItemGroup>
<ClCompile Include="adhoc.cpp" />
<ClCompile Include="test.cpp" />
2016-10-05 22:18:04 +00:00
<ClCompile Include="bench1.cpp" />
<ClCompile Include="bench2.cpp" />
<ClCompile Include="bench3.cpp" />
2016-10-05 22:18:04 +00:00
<ClCompile Include="datatest.cpp" />
<ClCompile Include="dlltest.cpp" />
<ClCompile Include="fipsalgt.cpp" />
<ClCompile Include="regtest1.cpp" />
<ClCompile Include="regtest2.cpp" />
<ClCompile Include="regtest3.cpp" />
<ClCompile Include="regtest4.cpp" />
2016-12-07 01:56:57 +00:00
<ClCompile Include="validat0.cpp" />
2016-10-05 22:18:04 +00:00
<ClCompile Include="validat1.cpp" />
<ClCompile Include="validat2.cpp" />
<ClCompile Include="validat3.cpp" />
Add interface to TweetNaCl library (#566) TweetNaCl is a compact reimplementation of the NaCl library by Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, Peter Schwabe and Sjaak Smetsers. The library is less than 20 KB in size and provides 25 of the NaCl library functions. The compact library uses curve25519, XSalsa20, Poly1305 and SHA-512 as default primitives, and includes both x25519 key exchange and ed25519 signatures. The complete list of functions can be found in TweetNaCl: A crypto library in 100 tweets (20140917), Table 1, page 5. Crypto++ retained the function names and signatures but switched to data types provided by <stdint.h> to promote interoperability with Crypto++ and avoid size problems on platforms like Cygwin. For example, NaCl typdef'd u64 as an unsigned long long, but Cygwin, MinGW and MSYS are LP64 systems (not LLP64 systems). In addition, Crypto++ was missing NaCl's signed 64-bit integer i64. Crypto++ enforces the 0-key restriction due to small points. The TweetNaCl library allowed the 0-keys to small points. Also see RFC 7748, Elliptic Curves for Security, Section 6. TweetNaCl is well written but not well optimized. It runs 2x to 3x slower than optimized routines from libsodium. However, the library is still 2x to 4x faster than the algorithms NaCl was designed to replace. The Crypto++ wrapper for TweetNaCl requires OS features. That is, NO_OS_DEPENDENCE cannot be defined. It is due to TweetNaCl's internal function randombytes. Crypto++ used DefaultAutoSeededRNG within randombytes, so OS integration must be enabled. You can use another generator like RDRAND to avoid the restriction.
2018-01-18 03:02:09 +00:00
<ClCompile Include="validat4.cpp" />
<ClCompile Include="validat5.cpp" />
<ClCompile Include="validat6.cpp" />
<ClCompile Include="validat7.cpp" />
<ClCompile Include="validat8.cpp" />
<ClCompile Include="validat9.cpp" />
<ClCompile Include="validat10.cpp" />
2016-10-05 22:18:04 +00:00
</ItemGroup>
<!-- Header Files -->
<ItemGroup>
<ClInclude Include="bench.h" />
<ClInclude Include="factory.h" />
<ClInclude Include="validate.h" />
</ItemGroup>
<!-- Test Vectors -->
<ItemGroup>
<Text Include="TestVectors\aes.txt" />
<Text Include="TestVectors\all.txt" />
<Text Include="TestVectors\blake2.txt" />
<Text Include="TestVectors\blake2b.txt" />
<Text Include="TestVectors\blake2s.txt" />
<Text Include="TestVectors\aria.txt" />
<Text Include="TestVectors\camellia.txt" />
<Text Include="TestVectors\ccm.txt" />
<Text Include="TestVectors\chacha.txt" />
<Text Include="TestVectors\chacha_tls.txt" />
<Text Include="TestVectors\cham.txt" />
<Text Include="TestVectors\cmac.txt" />
<Text Include="TestVectors\dlies.txt" />
<Text Include="TestVectors\dsa.txt" />
<Text Include="TestVectors\dsa_1363.txt" />
<Text Include="TestVectors\dsa_rfc6979.txt" />
<Text Include="TestVectors\eax.txt" />
<Text Include="TestVectors\esign.txt" />
<Text Include="TestVectors\gcm.txt" />
<Text Include="TestVectors\hc128.txt" />
<Text Include="TestVectors\hc256.txt" />
<Text Include="TestVectors\hight.txt" />
<Text Include="TestVectors\hkdf.txt" />
<Text Include="TestVectors\hmac.txt" />
<Text Include="TestVectors\kalyna.txt" />
<Text Include="TestVectors\keccak.txt" />
<Text Include="TestVectors\lea.txt" />
<Text Include="TestVectors\mars.txt" />
<Text Include="TestVectors\nr.txt" />
<Text Include="TestVectors\panama.txt" />
<Text Include="TestVectors\Readme.txt" />
<Text Include="TestVectors\rabbit.txt" />
<Text Include="TestVectors\rsa_oaep.txt" />
<Text Include="TestVectors\rsa_pkcs1_1_5.txt" />
<Text Include="TestVectors\rsa_pss.txt" />
<Text Include="TestVectors\rw.txt" />
<Text Include="TestVectors\salsa.txt" />
<Text Include="TestVectors\seal.txt" />
<Text Include="TestVectors\seed.txt" />
<Text Include="TestVectors\sha.txt" />
<Text Include="TestVectors\sha1_160_fips_180.txt" />
<Text Include="TestVectors\sha1_fips_180.txt" />
<Text Include="TestVectors\sha2.txt" />
<Text Include="TestVectors\sha2_224_fips_180.txt" />
<Text Include="TestVectors\sha2_256_fips_180.txt" />
<Text Include="TestVectors\sha2_384_fips_180.txt" />
<Text Include="TestVectors\sha2_512_fips_180.txt" />
<Text Include="TestVectors\sha2_fips_180.txt" />
<Text Include="TestVectors\sha3.txt" />
<Text Include="TestVectors\sha3_224_fips_202.txt" />
<Text Include="TestVectors\sha3_256_fips_202.txt" />
<Text Include="TestVectors\sha3_384_fips_202.txt" />
<Text Include="TestVectors\sha3_512_fips_202.txt" />
<Text Include="TestVectors\sha3_fips_202.txt" />
<Text Include="TestVectors\shacal2.txt" />
<Text Include="TestVectors\simon.txt" />
<Text Include="TestVectors\siphash.txt" />
<Text Include="TestVectors\simeck.txt" />
2017-11-24 04:19:09 +00:00
<Text Include="TestVectors\sm3.txt" />
<Text Include="TestVectors\sm4.txt" />
<Text Include="TestVectors\sosemanuk.txt" />
<Text Include="TestVectors\speck.txt" />
<Text Include="TestVectors\tea.txt" />
<Text Include="TestVectors\threefish.txt" />
<Text Include="TestVectors\ttmac.txt" />
<Text Include="TestVectors\vmac.txt" />
<Text Include="TestVectors\wake.txt" />
<Text Include="TestVectors\whrlpool.txt" />
</ItemGroup>
<!-- Test Data -->
<ItemGroup>
<None Include="TestData\3desval.dat" />
<None Include="TestData\3wayval.dat" />
<None Include="TestData\aria.dat" />
<None Include="TestData\camellia.dat" />
<None Include="TestData\cast128v.dat" />
<None Include="TestData\cast256v.dat" />
<None Include="TestData\descert.dat" />
<None Include="TestData\defdmac1.bin" />
<None Include="TestData\defdmac2.bin" />
<None Include="TestData\dh1024.dat" />
<None Include="TestData\dh2048.dat" />
<None Include="TestData\dlie1024.dat" />
<None Include="TestData\dlie2048.dat" />
<None Include="TestData\dsa1024.dat" />
<None Include="TestData\dsa1024b.dat" />
<None Include="TestData\dsa512.dat" />
<None Include="TestData\ed25519.dat" />
<None Include="TestData\elgc1024.dat" />
<None Include="TestData\esig1023.dat" />
<None Include="TestData\esig1536.dat" />
<None Include="TestData\esig2046.dat" />
<None Include="TestData\fhmqv160.dat" />
<None Include="TestData\fhmqv256.dat" />
<None Include="TestData\fhmqv384.dat" />
<None Include="TestData\fhmqv512.dat" />
<None Include="TestData\gostval.dat" />
<None Include="TestData\hmqv160.dat" />
<None Include="TestData\hmqv256.dat" />
<None Include="TestData\hmqv384.dat" />
<None Include="TestData\hmqv512.dat" />
<None Include="TestData\ideaval.dat" />
<None Include="TestData\luc1024.dat" />
<None Include="TestData\luc2048.dat" />
<None Include="TestData\lucc1024.dat" />
<None Include="TestData\lucc512.dat" />
<None Include="TestData\lucd1024.dat" />
<None Include="TestData\lucd512.dat" />
<None Include="TestData\lucs1024.dat" />
<None Include="TestData\lucs512.dat" />
<None Include="TestData\marsval.dat" />
<None Include="TestData\mqv1024.dat" />
<None Include="TestData\mqv2048.dat" />
<None Include="TestData\nr1024.dat" />
<None Include="TestData\nr2048.dat" />
<None Include="TestData\rabi1024.dat" />
<None Include="TestData\rabi2048.dat" />
<None Include="TestData\rc2val.dat" />
<None Include="TestData\rc5val.dat" />
<None Include="TestData\rc6val.dat" />
<None Include="TestData\rijndael.dat" />
<None Include="TestData\rsa1024.dat" />
<None Include="TestData\rsa2048.dat" />
<None Include="TestData\rsa2048a.dat" />
<None Include="TestData\rsa400pb.dat" />
<None Include="TestData\rsa400pv.dat" />
<None Include="TestData\rsa512a.dat" />
<None Include="TestData\rw1024.dat" />
<None Include="TestData\rw2048.dat" />
<None Include="TestData\saferval.dat" />
<None Include="TestData\serpentv.dat" />
<None Include="TestData\shacal2v.dat" />
<None Include="TestData\sharkval.dat" />
<None Include="TestData\skipjack.dat" />
<None Include="TestData\squareva.dat" />
<None Include="TestData\twofishv.dat" />
<None Include="TestData\usage.dat" />
<None Include="TestData\x25519.dat" />
<None Include="TestData\xtrdh171.dat" />
<None Include="TestData\xtrdh342.dat" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>