diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj | 8 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj.filters | 18 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj | 8 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj.filters | 18 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/res/Version.rc | 38 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/src/Version.h | 11 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp (renamed from plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.c) | 8 |
7 files changed, 101 insertions, 8 deletions
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj index 06b5358df3..bf1416a4dc 100644 --- a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj @@ -145,7 +145,13 @@ </Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="src\cryptor.c" />
+ <ClCompile Include="src\cryptor.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\Version.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj.filters b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj.filters index bf6bc68de3..5842bc8c63 100644 --- a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj.filters +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_10.vcxproj.filters @@ -5,10 +5,26 @@ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{d9ef4bec-040d-4cca-8faa-698d1448fb23}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{27e27fc6-b7a7-4c5c-a051-e9cad5b16d52}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\cryptor.c">
+ <ClCompile Include="src\cryptor.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
</Project>
\ No newline at end of file diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj index 4bcc850b4c..0de6df9c69 100644 --- a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj @@ -149,7 +149,13 @@ </Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="src\cryptor.c" />
+ <ClCompile Include="src\cryptor.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\Version.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj.filters b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj.filters index bf6bc68de3..5842bc8c63 100644 --- a/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj.filters +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/rc4_11.vcxproj.filters @@ -5,10 +5,26 @@ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{d9ef4bec-040d-4cca-8faa-698d1448fb23}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{27e27fc6-b7a7-4c5c-a051-e9cad5b16d52}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\cryptor.c">
+ <ClCompile Include="src\cryptor.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
</Project>
\ No newline at end of file diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/res/Version.rc b/plugins/Dbx_mmap_SA/Cryptors/RC4/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/res/Version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "afxres.h"
+#include "..\src\version.h"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/src/Version.h b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/Version.h new file mode 100644 index 0000000000..b3cf9b4129 --- /dev/null +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/Version.h @@ -0,0 +1,11 @@ +#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 1
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "RC4"
+#define __FILENAME "RC4.dll"
+#define __DESCRIPTION "Old, very easy to crack stream cipher"
+#define __COPYRIGHT "© 2012-13 Miranda NG Team"
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.c b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp index 1f5f61705f..d41f3a9eb2 100644 --- a/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.c +++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp @@ -92,7 +92,7 @@ void* __stdcall GenerateKey(char* pwd) rc4_key* key;
key = (rc4_key*)malloc(sizeof(rc4_key));
zero_fill((BYTE*)key, sizeof(key));
- prepare_key(pwd, strlen(pwd), key);
+ prepare_key((BYTE*)pwd, strlen(pwd), key);
return key;
}
@@ -103,12 +103,12 @@ void __stdcall FreeKey(void* key) void __stdcall EncryptMem(BYTE* data, int size, void* key)
{
- rc4(data, size, key);
+ rc4(data, size, (rc4_key*)key);
}
void __stdcall DecryptMem(BYTE* data, int size, void* key)
{
- rc4(data, size, key);
+ rc4(data, size, (rc4_key*)key);
}
Cryptor cryptor =
@@ -118,7 +118,7 @@ Cryptor cryptor = EncryptMem,
DecryptMem,
"RC4",
- "Old, very easy to crack stream cipher",
+ "Old, very easy to crack stream cipher.",
"Unknown",
"http://ru.wikipedia.org/wiki/RC4",
"nomail",
|