Skip to content

Commit

Permalink
Case insensitive decryption key lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Atvaark committed Oct 27, 2017
1 parent 58289fa commit 3bd646e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions BinderTool/DecryptionKeys.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Text;

namespace BinderTool
Expand All @@ -11,7 +12,7 @@ internal static class DecryptionKeys

static DecryptionKeys()
{
RsaKeyDictionary = new Dictionary<string, string>
RsaKeyDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
{
{ "Data1.bhd", Data1Key },
{ "Data2.bhd", Data2Key },
Expand All @@ -22,7 +23,7 @@ static DecryptionKeys()
{ "DLC2.bhd", Dlc2Key },
};

AesKeyDictionary = new Dictionary<string, byte[]>()
AesKeyDictionary = new Dictionary<string, byte[]>(StringComparer.InvariantCultureIgnoreCase)
{
{ "regulation.regbnd.dcx.enc", RegulationFileKeyDs3 },
{ "enc_regulation.bnd.dcx", RegulationFileKeyDs2 },
Expand Down

0 comments on commit 3bd646e

Please sign in to comment.