ooxml_crypt 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ooxml_crypt/version.rb +1 -1
- data/vendor/cybozulib/common.mk +3 -3
- data/vendor/cybozulib/common.props +1 -1
- data/vendor/cybozulib/debug.props +1 -1
- data/vendor/cybozulib/include/cybozu/atomic.hpp +15 -5
- data/vendor/cybozulib/include/cybozu/bfd.hpp +1 -1
- data/vendor/cybozulib/include/cybozu/bit_operation.hpp +8 -10
- data/vendor/cybozulib/include/cybozu/crypto.hpp +59 -5
- data/vendor/cybozulib/include/cybozu/endian.hpp +0 -2
- data/vendor/cybozulib/include/cybozu/inttype.hpp +17 -3
- data/vendor/cybozulib/include/cybozu/link_libeay32.hpp +1 -1
- data/vendor/cybozulib/include/cybozu/link_mpir.hpp +1 -1
- data/vendor/cybozulib/include/cybozu/link_ssleay32.hpp +1 -1
- data/vendor/cybozulib/include/cybozu/random_generator.hpp +1 -0
- data/vendor/cybozulib/include/cybozu/sha2.hpp +102 -0
- data/vendor/cybozulib/sample/proj/ssl_smpl/ssl_smpl.vcxproj +1 -1
- data/vendor/cybozulib/sample/proj/stacktrace_smpl/stacktrace_smpl.vcxproj +1 -1
- data/vendor/cybozulib/test/Makefile +3 -3
- data/vendor/cybozulib/test/base/proj/array_test/array_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/atoi_test/atoi_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/atomic_test/atomic_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/base64_test/base64_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/condition_variable_cs_test/condition_variable_cs_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/condition_variable_test/condition_variable_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/config_test/config_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/csv_test/csv_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/endian_test/endian_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/env_test/env_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/event_test/event_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/file_test/file_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/itoa_test/itoa_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/mecab_test/mecab_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/minixml_test/minixml_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/mmap_test/mmap_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/serializer_test/serializer_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/sha1_test/sha1_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/stream_test/stream_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/string_operation_test/string_operation_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/string_test/string_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/thread_test/thread_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/time_test/time_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/tls_test/tls_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/proj/zlib_test/zlib_test.vcxproj +1 -1
- data/vendor/cybozulib/test/base/sha2_test.cpp +1 -1
- data/vendor/cybozulib/test/base/zlib_test.cpp +2 -0
- data/vendor/msoffice/Makefile +2 -2
- data/vendor/msoffice/bin/msoffice-crypt.exe +0 -0
- data/vendor/msoffice/common.mk +11 -6
- data/vendor/msoffice/common.props +25 -25
- data/vendor/msoffice/debug.props +13 -13
- data/vendor/msoffice/include/crypto_util.hpp +454 -450
- data/vendor/msoffice/readme.md +2 -0
- data/vendor/msoffice/release.props +27 -27
- data/vendor/msoffice/test/Makefile +4 -1
- data/vendor/msoffice/test/proj/cfb/cfb_test.vcxproj +89 -89
- data/vendor/msoffice/test/proj/hash/hash_test.vcxproj +89 -89
- data/vendor/msoffice/test_all.py +4 -4
- metadata +7 -7
data/vendor/msoffice/readme.md
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
-
<ImportGroup Label="PropertySheets" />
|
4
|
-
<PropertyGroup Label="UserMacros" />
|
5
|
-
<PropertyGroup />
|
6
|
-
<ItemDefinitionGroup>
|
7
|
-
<ClCompile>
|
8
|
-
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
9
|
-
</ClCompile>
|
10
|
-
</ItemDefinitionGroup>
|
11
|
-
<ItemDefinitionGroup>
|
12
|
-
<ClCompile>
|
13
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
14
|
-
</ClCompile>
|
15
|
-
</ItemDefinitionGroup>
|
16
|
-
<ItemDefinitionGroup>
|
17
|
-
<ClCompile>
|
18
|
-
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
19
|
-
</ClCompile>
|
20
|
-
</ItemDefinitionGroup>
|
21
|
-
<ItemDefinitionGroup>
|
22
|
-
<ClCompile>
|
23
|
-
<OmitFramePointers>true</OmitFramePointers>
|
24
|
-
<BufferSecurityCheck>false</BufferSecurityCheck>
|
25
|
-
</ClCompile>
|
26
|
-
</ItemDefinitionGroup>
|
27
|
-
<ItemGroup />
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<ImportGroup Label="PropertySheets" />
|
4
|
+
<PropertyGroup Label="UserMacros" />
|
5
|
+
<PropertyGroup />
|
6
|
+
<ItemDefinitionGroup>
|
7
|
+
<ClCompile>
|
8
|
+
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
9
|
+
</ClCompile>
|
10
|
+
</ItemDefinitionGroup>
|
11
|
+
<ItemDefinitionGroup>
|
12
|
+
<ClCompile>
|
13
|
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
14
|
+
</ClCompile>
|
15
|
+
</ItemDefinitionGroup>
|
16
|
+
<ItemDefinitionGroup>
|
17
|
+
<ClCompile>
|
18
|
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
19
|
+
</ClCompile>
|
20
|
+
</ItemDefinitionGroup>
|
21
|
+
<ItemDefinitionGroup>
|
22
|
+
<ClCompile>
|
23
|
+
<OmitFramePointers>true</OmitFramePointers>
|
24
|
+
<BufferSecurityCheck>false</BufferSecurityCheck>
|
25
|
+
</ClCompile>
|
26
|
+
</ItemDefinitionGroup>
|
27
|
+
<ItemGroup />
|
28
28
|
</Project>
|
@@ -1,90 +1,90 @@
|
|
1
|
-
|
2
|
-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
-
<ItemGroup Label="ProjectConfigurations">
|
4
|
-
<ProjectConfiguration Include="Debug|x64">
|
5
|
-
<Configuration>Debug</Configuration>
|
6
|
-
<Platform>x64</Platform>
|
7
|
-
</ProjectConfiguration>
|
8
|
-
<ProjectConfiguration Include="Release|x64">
|
9
|
-
<Configuration>Release</Configuration>
|
10
|
-
<Platform>x64</Platform>
|
11
|
-
</ProjectConfiguration>
|
12
|
-
</ItemGroup>
|
13
|
-
<PropertyGroup Label="Globals">
|
14
|
-
<ProjectGuid>{9E396E79-C168-4C40-BDE0-C9413B33C8CE}</ProjectGuid>
|
15
|
-
<Keyword>Win32Proj</Keyword>
|
16
|
-
<RootNamespace>cfb_test</RootNamespace>
|
17
|
-
</PropertyGroup>
|
18
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
19
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
20
|
-
<ConfigurationType>Application</ConfigurationType>
|
21
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
22
|
-
<PlatformToolset>v110</PlatformToolset>
|
23
|
-
<CharacterSet>MultiByte</CharacterSet>
|
24
|
-
</PropertyGroup>
|
25
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
26
|
-
<ConfigurationType>Application</ConfigurationType>
|
27
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
28
|
-
<PlatformToolset>v110</PlatformToolset>
|
29
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
30
|
-
<CharacterSet>MultiByte</CharacterSet>
|
31
|
-
</PropertyGroup>
|
32
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
33
|
-
<ImportGroup Label="ExtensionSettings">
|
34
|
-
</ImportGroup>
|
35
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
36
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
37
|
-
<Import Project="..\..\..\common.props" />
|
38
|
-
<Import Project="..\..\..\debug.props" />
|
39
|
-
</ImportGroup>
|
40
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
41
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
42
|
-
<Import Project="..\..\..\common.props" />
|
43
|
-
<Import Project="..\..\..\release.props" />
|
44
|
-
</ImportGroup>
|
45
|
-
<PropertyGroup Label="UserMacros" />
|
46
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
47
|
-
<LinkIncremental>true</LinkIncremental>
|
48
|
-
</PropertyGroup>
|
49
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
50
|
-
<LinkIncremental>false</LinkIncremental>
|
51
|
-
</PropertyGroup>
|
52
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
53
|
-
<ClCompile>
|
54
|
-
<PrecompiledHeader>
|
55
|
-
</PrecompiledHeader>
|
56
|
-
<WarningLevel>Level4</WarningLevel>
|
57
|
-
<Optimization>Disabled</Optimization>
|
58
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
59
|
-
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
60
|
-
</ClCompile>
|
61
|
-
<Link>
|
62
|
-
<SubSystem>Console</SubSystem>
|
63
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
64
|
-
</Link>
|
65
|
-
</ItemDefinitionGroup>
|
66
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
67
|
-
<ClCompile>
|
68
|
-
<WarningLevel>Level4</WarningLevel>
|
69
|
-
<PrecompiledHeader>
|
70
|
-
</PrecompiledHeader>
|
71
|
-
<Optimization>MaxSpeed</Optimization>
|
72
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
73
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
74
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
75
|
-
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
76
|
-
</ClCompile>
|
77
|
-
<Link>
|
78
|
-
<SubSystem>Console</SubSystem>
|
79
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
80
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
81
|
-
<OptimizeReferences>true</OptimizeReferences>
|
82
|
-
</Link>
|
83
|
-
</ItemDefinitionGroup>
|
84
|
-
<ItemGroup>
|
85
|
-
<ClCompile Include="..\..\cfb_test.cpp" />
|
86
|
-
</ItemGroup>
|
87
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
88
|
-
<ImportGroup Label="ExtensionTargets">
|
89
|
-
</ImportGroup>
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<ItemGroup Label="ProjectConfigurations">
|
4
|
+
<ProjectConfiguration Include="Debug|x64">
|
5
|
+
<Configuration>Debug</Configuration>
|
6
|
+
<Platform>x64</Platform>
|
7
|
+
</ProjectConfiguration>
|
8
|
+
<ProjectConfiguration Include="Release|x64">
|
9
|
+
<Configuration>Release</Configuration>
|
10
|
+
<Platform>x64</Platform>
|
11
|
+
</ProjectConfiguration>
|
12
|
+
</ItemGroup>
|
13
|
+
<PropertyGroup Label="Globals">
|
14
|
+
<ProjectGuid>{9E396E79-C168-4C40-BDE0-C9413B33C8CE}</ProjectGuid>
|
15
|
+
<Keyword>Win32Proj</Keyword>
|
16
|
+
<RootNamespace>cfb_test</RootNamespace>
|
17
|
+
</PropertyGroup>
|
18
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
19
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
20
|
+
<ConfigurationType>Application</ConfigurationType>
|
21
|
+
<UseDebugLibraries>true</UseDebugLibraries>
|
22
|
+
<PlatformToolset>v110</PlatformToolset>
|
23
|
+
<CharacterSet>MultiByte</CharacterSet>
|
24
|
+
</PropertyGroup>
|
25
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
26
|
+
<ConfigurationType>Application</ConfigurationType>
|
27
|
+
<UseDebugLibraries>false</UseDebugLibraries>
|
28
|
+
<PlatformToolset>v110</PlatformToolset>
|
29
|
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
30
|
+
<CharacterSet>MultiByte</CharacterSet>
|
31
|
+
</PropertyGroup>
|
32
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
33
|
+
<ImportGroup Label="ExtensionSettings">
|
34
|
+
</ImportGroup>
|
35
|
+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
36
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
37
|
+
<Import Project="..\..\..\common.props" />
|
38
|
+
<Import Project="..\..\..\debug.props" />
|
39
|
+
</ImportGroup>
|
40
|
+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
41
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
42
|
+
<Import Project="..\..\..\common.props" />
|
43
|
+
<Import Project="..\..\..\release.props" />
|
44
|
+
</ImportGroup>
|
45
|
+
<PropertyGroup Label="UserMacros" />
|
46
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
47
|
+
<LinkIncremental>true</LinkIncremental>
|
48
|
+
</PropertyGroup>
|
49
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
50
|
+
<LinkIncremental>false</LinkIncremental>
|
51
|
+
</PropertyGroup>
|
52
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
53
|
+
<ClCompile>
|
54
|
+
<PrecompiledHeader>
|
55
|
+
</PrecompiledHeader>
|
56
|
+
<WarningLevel>Level4</WarningLevel>
|
57
|
+
<Optimization>Disabled</Optimization>
|
58
|
+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
59
|
+
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
60
|
+
</ClCompile>
|
61
|
+
<Link>
|
62
|
+
<SubSystem>Console</SubSystem>
|
63
|
+
<GenerateDebugInformation>true</GenerateDebugInformation>
|
64
|
+
</Link>
|
65
|
+
</ItemDefinitionGroup>
|
66
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
67
|
+
<ClCompile>
|
68
|
+
<WarningLevel>Level4</WarningLevel>
|
69
|
+
<PrecompiledHeader>
|
70
|
+
</PrecompiledHeader>
|
71
|
+
<Optimization>MaxSpeed</Optimization>
|
72
|
+
<FunctionLevelLinking>true</FunctionLevelLinking>
|
73
|
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
74
|
+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
75
|
+
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
76
|
+
</ClCompile>
|
77
|
+
<Link>
|
78
|
+
<SubSystem>Console</SubSystem>
|
79
|
+
<GenerateDebugInformation>true</GenerateDebugInformation>
|
80
|
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
81
|
+
<OptimizeReferences>true</OptimizeReferences>
|
82
|
+
</Link>
|
83
|
+
</ItemDefinitionGroup>
|
84
|
+
<ItemGroup>
|
85
|
+
<ClCompile Include="..\..\cfb_test.cpp" />
|
86
|
+
</ItemGroup>
|
87
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
88
|
+
<ImportGroup Label="ExtensionTargets">
|
89
|
+
</ImportGroup>
|
90
90
|
</Project>
|
@@ -1,90 +1,90 @@
|
|
1
|
-
|
2
|
-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
-
<ItemGroup Label="ProjectConfigurations">
|
4
|
-
<ProjectConfiguration Include="Debug|x64">
|
5
|
-
<Configuration>Debug</Configuration>
|
6
|
-
<Platform>x64</Platform>
|
7
|
-
</ProjectConfiguration>
|
8
|
-
<ProjectConfiguration Include="Release|x64">
|
9
|
-
<Configuration>Release</Configuration>
|
10
|
-
<Platform>x64</Platform>
|
11
|
-
</ProjectConfiguration>
|
12
|
-
</ItemGroup>
|
13
|
-
<PropertyGroup Label="Globals">
|
14
|
-
<ProjectGuid>{3964602A-8554-4AB5-BB10-E4A24CFBCA4F}</ProjectGuid>
|
15
|
-
<Keyword>Win32Proj</Keyword>
|
16
|
-
<RootNamespace>hash_test</RootNamespace>
|
17
|
-
</PropertyGroup>
|
18
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
19
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
20
|
-
<ConfigurationType>Application</ConfigurationType>
|
21
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
22
|
-
<PlatformToolset>v110</PlatformToolset>
|
23
|
-
<CharacterSet>MultiByte</CharacterSet>
|
24
|
-
</PropertyGroup>
|
25
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
26
|
-
<ConfigurationType>Application</ConfigurationType>
|
27
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
28
|
-
<PlatformToolset>v110</PlatformToolset>
|
29
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
30
|
-
<CharacterSet>MultiByte</CharacterSet>
|
31
|
-
</PropertyGroup>
|
32
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
33
|
-
<ImportGroup Label="ExtensionSettings">
|
34
|
-
</ImportGroup>
|
35
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
36
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
37
|
-
<Import Project="..\..\..\common.props" />
|
38
|
-
<Import Project="..\..\..\debug.props" />
|
39
|
-
</ImportGroup>
|
40
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
41
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
42
|
-
<Import Project="..\..\..\common.props" />
|
43
|
-
<Import Project="..\..\..\release.props" />
|
44
|
-
</ImportGroup>
|
45
|
-
<PropertyGroup Label="UserMacros" />
|
46
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
47
|
-
<LinkIncremental>true</LinkIncremental>
|
48
|
-
</PropertyGroup>
|
49
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
50
|
-
<LinkIncremental>false</LinkIncremental>
|
51
|
-
</PropertyGroup>
|
52
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
53
|
-
<ClCompile>
|
54
|
-
<PrecompiledHeader>
|
55
|
-
</PrecompiledHeader>
|
56
|
-
<WarningLevel>Level4</WarningLevel>
|
57
|
-
<Optimization>Disabled</Optimization>
|
58
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
59
|
-
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
60
|
-
</ClCompile>
|
61
|
-
<Link>
|
62
|
-
<SubSystem>Console</SubSystem>
|
63
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
64
|
-
</Link>
|
65
|
-
</ItemDefinitionGroup>
|
66
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
67
|
-
<ClCompile>
|
68
|
-
<WarningLevel>Level4</WarningLevel>
|
69
|
-
<PrecompiledHeader>
|
70
|
-
</PrecompiledHeader>
|
71
|
-
<Optimization>MaxSpeed</Optimization>
|
72
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
73
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
74
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
75
|
-
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
76
|
-
</ClCompile>
|
77
|
-
<Link>
|
78
|
-
<SubSystem>Console</SubSystem>
|
79
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
80
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
81
|
-
<OptimizeReferences>true</OptimizeReferences>
|
82
|
-
</Link>
|
83
|
-
</ItemDefinitionGroup>
|
84
|
-
<ItemGroup>
|
85
|
-
<ClCompile Include="..\..\hash_test.cpp" />
|
86
|
-
</ItemGroup>
|
87
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
88
|
-
<ImportGroup Label="ExtensionTargets">
|
89
|
-
</ImportGroup>
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<ItemGroup Label="ProjectConfigurations">
|
4
|
+
<ProjectConfiguration Include="Debug|x64">
|
5
|
+
<Configuration>Debug</Configuration>
|
6
|
+
<Platform>x64</Platform>
|
7
|
+
</ProjectConfiguration>
|
8
|
+
<ProjectConfiguration Include="Release|x64">
|
9
|
+
<Configuration>Release</Configuration>
|
10
|
+
<Platform>x64</Platform>
|
11
|
+
</ProjectConfiguration>
|
12
|
+
</ItemGroup>
|
13
|
+
<PropertyGroup Label="Globals">
|
14
|
+
<ProjectGuid>{3964602A-8554-4AB5-BB10-E4A24CFBCA4F}</ProjectGuid>
|
15
|
+
<Keyword>Win32Proj</Keyword>
|
16
|
+
<RootNamespace>hash_test</RootNamespace>
|
17
|
+
</PropertyGroup>
|
18
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
19
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
20
|
+
<ConfigurationType>Application</ConfigurationType>
|
21
|
+
<UseDebugLibraries>true</UseDebugLibraries>
|
22
|
+
<PlatformToolset>v110</PlatformToolset>
|
23
|
+
<CharacterSet>MultiByte</CharacterSet>
|
24
|
+
</PropertyGroup>
|
25
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
26
|
+
<ConfigurationType>Application</ConfigurationType>
|
27
|
+
<UseDebugLibraries>false</UseDebugLibraries>
|
28
|
+
<PlatformToolset>v110</PlatformToolset>
|
29
|
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
30
|
+
<CharacterSet>MultiByte</CharacterSet>
|
31
|
+
</PropertyGroup>
|
32
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
33
|
+
<ImportGroup Label="ExtensionSettings">
|
34
|
+
</ImportGroup>
|
35
|
+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
36
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
37
|
+
<Import Project="..\..\..\common.props" />
|
38
|
+
<Import Project="..\..\..\debug.props" />
|
39
|
+
</ImportGroup>
|
40
|
+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
41
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
42
|
+
<Import Project="..\..\..\common.props" />
|
43
|
+
<Import Project="..\..\..\release.props" />
|
44
|
+
</ImportGroup>
|
45
|
+
<PropertyGroup Label="UserMacros" />
|
46
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
47
|
+
<LinkIncremental>true</LinkIncremental>
|
48
|
+
</PropertyGroup>
|
49
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
50
|
+
<LinkIncremental>false</LinkIncremental>
|
51
|
+
</PropertyGroup>
|
52
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
53
|
+
<ClCompile>
|
54
|
+
<PrecompiledHeader>
|
55
|
+
</PrecompiledHeader>
|
56
|
+
<WarningLevel>Level4</WarningLevel>
|
57
|
+
<Optimization>Disabled</Optimization>
|
58
|
+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
59
|
+
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
60
|
+
</ClCompile>
|
61
|
+
<Link>
|
62
|
+
<SubSystem>Console</SubSystem>
|
63
|
+
<GenerateDebugInformation>true</GenerateDebugInformation>
|
64
|
+
</Link>
|
65
|
+
</ItemDefinitionGroup>
|
66
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
67
|
+
<ClCompile>
|
68
|
+
<WarningLevel>Level4</WarningLevel>
|
69
|
+
<PrecompiledHeader>
|
70
|
+
</PrecompiledHeader>
|
71
|
+
<Optimization>MaxSpeed</Optimization>
|
72
|
+
<FunctionLevelLinking>true</FunctionLevelLinking>
|
73
|
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
74
|
+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
|
75
|
+
<AdditionalIncludeDirectories>$(SolutionDir)include;$(SolutionDir)..\cybozulib\include;$(SolutionDir)..\cybozulib_ext\openssl\include</AdditionalIncludeDirectories>
|
76
|
+
</ClCompile>
|
77
|
+
<Link>
|
78
|
+
<SubSystem>Console</SubSystem>
|
79
|
+
<GenerateDebugInformation>true</GenerateDebugInformation>
|
80
|
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
81
|
+
<OptimizeReferences>true</OptimizeReferences>
|
82
|
+
</Link>
|
83
|
+
</ItemDefinitionGroup>
|
84
|
+
<ItemGroup>
|
85
|
+
<ClCompile Include="..\..\hash_test.cpp" />
|
86
|
+
</ItemGroup>
|
87
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
88
|
+
<ImportGroup Label="ExtensionTargets">
|
89
|
+
</ImportGroup>
|
90
90
|
</Project>
|
data/vendor/msoffice/test_all.py
CHANGED
@@ -11,7 +11,7 @@ except:
|
|
11
11
|
|
12
12
|
def verify(name):
|
13
13
|
[base,suf] = name.split('.')
|
14
|
-
print
|
14
|
+
print(base, suf)
|
15
15
|
enc1 = INP + '/' + base + '.' + suf
|
16
16
|
dec1 = OUT + '/' + base + '.' + suf
|
17
17
|
enc2 = OUT + '/' + base + '_e.' + suf
|
@@ -23,9 +23,9 @@ def verify(name):
|
|
23
23
|
subprocess.check_call([EXE, "-d", "-p", ps2, enc2, dec2])
|
24
24
|
data1 = open(dec1, 'rb').read()
|
25
25
|
data2 = open(dec2, 'rb').read()
|
26
|
-
print
|
26
|
+
print("size", len(data1))
|
27
27
|
if data1 != data2:
|
28
|
-
print
|
28
|
+
print("bad decode:not equal", dec1, dec2)
|
29
29
|
exit(1)
|
30
30
|
|
31
31
|
def main():
|
@@ -39,7 +39,7 @@ def main():
|
|
39
39
|
for file in files:
|
40
40
|
verify(file)
|
41
41
|
except Exception as e:
|
42
|
-
print
|
42
|
+
print(e)
|
43
43
|
exit(1)
|
44
44
|
|
45
45
|
if __name__ == '__main__':
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ooxml_crypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashish Kulkarni
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- ashish@kulkarni.dev
|
58
58
|
executables: []
|
@@ -328,7 +328,7 @@ licenses:
|
|
328
328
|
metadata:
|
329
329
|
homepage_uri: https://github.com/teamsimplepay/ooxml_crypt
|
330
330
|
source_code_uri: https://github.com/teamsimplepay/ooxml_crypt
|
331
|
-
post_install_message:
|
331
|
+
post_install_message:
|
332
332
|
rdoc_options: []
|
333
333
|
require_paths:
|
334
334
|
- lib
|
@@ -343,8 +343,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
- !ruby/object:Gem::Version
|
344
344
|
version: '0'
|
345
345
|
requirements: []
|
346
|
-
rubygems_version: 3.
|
347
|
-
signing_key:
|
346
|
+
rubygems_version: 3.3.15
|
347
|
+
signing_key:
|
348
348
|
specification_version: 4
|
349
349
|
summary: Library for encrypting/decrypting password-protected Microsoft Office XML
|
350
350
|
(OOXML) files (e.g. .docx, .xlsx, .pptx)
|