Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
Proper naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mineminemine committed Nov 14, 2018
1 parent caa8fa2 commit c4cbcef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xv2savdec/Crypto.cs → xv2savdec/Advapi32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace xv2savdec
{
class Crypto
class Advapi32
{
#region CONSTS

Expand Down
6 changes: 3 additions & 3 deletions xv2savdec/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ 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...");
Console.ReadKey();
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...");
Console.ReadKey();
Environment.Exit(0);
}

Crypto.CryptReleaseContext(hProv, 0);
Advapi32.CryptReleaseContext(hProv, 0);
}

public static void Xor(byte[] data, int offset, byte[] xorkey)
Expand Down
2 changes: 1 addition & 1 deletion xv2savdec/xv2savdec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Crypto.cs" />
<Compile Include="Advapi32.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils.cs" />
Expand Down

0 comments on commit c4cbcef

Please sign in to comment.