mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-08 18:06:41 +00:00
Fix issue with 3DS key assignment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user