diff --git a/SabreTools.Wrappers/N3DS.Encryption.cs b/SabreTools.Wrappers/N3DS.Encryption.cs index 390e4acf..979e005b 100644 --- a/SabreTools.Wrappers/N3DS.Encryption.cs +++ b/SabreTools.Wrappers/N3DS.Encryption.cs @@ -1008,7 +1008,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(KeyX0x18, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedKeyX0x18)) return; @@ -1031,7 +1031,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(DevKeyX0x18, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedDevKeyX0x18)) return; @@ -1054,7 +1054,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(KeyX0x1B, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedKeyX0x1B)) return; @@ -1077,7 +1077,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(DevKeyX0x1B, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedDevKeyX0x1B)) return; @@ -1100,7 +1100,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(KeyX0x25, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedKeyX0x25)) return; @@ -1123,7 +1123,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(DevKeyX0x25, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedDevKeyX0x25)) return; @@ -1146,7 +1146,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(KeyX0x2C, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedKeyX0x2C)) return; @@ -1169,7 +1169,7 @@ namespace SabreTools.Wrappers return; // Validate the key data - var cipher = AESCTR.CreateEncryptionCipher(DevKeyX0x2C, TestIV); + var cipher = AESCTR.CreateEncryptionCipher(value, TestIV); byte[] actual = cipher.ProcessBytes(TestPattern); if (!actual.EqualsExactly(ExpectedDevKeyX0x2C)) return;