diff --git a/xv2savdec/Crypto.cs b/xv2savdec/Advapi32.cs
similarity index 98%
rename from xv2savdec/Crypto.cs
rename to xv2savdec/Advapi32.cs
index 98ff933..5b6e54b 100644
--- a/xv2savdec/Crypto.cs
+++ b/xv2savdec/Advapi32.cs
@@ -3,7 +3,7 @@
namespace xv2savdec
{
- class Crypto
+ class Advapi32
{
#region CONSTS
diff --git a/xv2savdec/Utils.cs b/xv2savdec/Utils.cs
index 87afd91..09712d6 100644
--- a/xv2savdec/Utils.cs
+++ b/xv2savdec/Utils.cs
@@ -58,7 +58,7 @@ public static void GetRandomData(byte[] buf, uint len)
{
IntPtr hProv = new IntPtr();
- if (!Crypto.CryptAcquireContext(ref hProv, null, null, Crypto.PROV_RSA_FULL, Crypto.CRYPT_VERIFYCONTEXT))
+ if (!Advapi32.CryptAcquireContext(ref hProv, null, null, Advapi32.PROV_RSA_FULL, Advapi32.CRYPT_VERIFYCONTEXT))
{
Console.WriteLine("CryptAquireContext error");
Console.WriteLine("Press any key to exit...");
@@ -66,7 +66,7 @@ public static void GetRandomData(byte[] buf, uint len)
Environment.Exit(0);
}
- if (!Crypto.CryptGenRandom(hProv, len, buf))
+ if (!Advapi32.CryptGenRandom(hProv, len, buf))
{
Console.WriteLine("CryptGenRandom error");
Console.WriteLine("Press any key to exit...");
@@ -74,7 +74,7 @@ public static void GetRandomData(byte[] buf, uint len)
Environment.Exit(0);
}
- Crypto.CryptReleaseContext(hProv, 0);
+ Advapi32.CryptReleaseContext(hProv, 0);
}
public static void Xor(byte[] data, int offset, byte[] xorkey)
diff --git a/xv2savdec/xv2savdec.csproj b/xv2savdec/xv2savdec.csproj
index 68ab7b9..d98d7ac 100644
--- a/xv2savdec/xv2savdec.csproj
+++ b/xv2savdec/xv2savdec.csproj
@@ -41,7 +41,7 @@
-
+