diff --git a/NDecrypt.N3DS/CIATool.cs b/NDecrypt.N3DS/CIATool.cs
index 3a326e2..0204a58 100644
--- a/NDecrypt.N3DS/CIATool.cs
+++ b/NDecrypt.N3DS/CIATool.cs
@@ -1,7 +1,5 @@
using System;
using System.IO;
-using System.Linq;
-using System.Numerics;
using NDecrypt.Core;
using SabreTools.IO.Extensions;
using SabreTools.Models.N3DS;
diff --git a/NDecrypt.N3DS/ThreeDSTool.cs b/NDecrypt.N3DS/ThreeDSTool.cs
index f6ffcc6..aa29600 100644
--- a/NDecrypt.N3DS/ThreeDSTool.cs
+++ b/NDecrypt.N3DS/ThreeDSTool.cs
@@ -90,11 +90,7 @@ namespace NDecrypt.N3DS
/// Indicates if the operation should be forced
/// Stream representing the input
/// Stream representing the output
- private void ProcessAllPartitions(Cart cart,
- bool encrypt,
- bool force,
- Stream input,
- Stream output)
+ private void ProcessAllPartitions(Cart cart, bool encrypt, bool force, Stream input, Stream output)
{
// Check the partitions table
if (cart.Header?.PartitionsTable == null || cart.Partitions == null)
@@ -149,11 +145,7 @@ namespace NDecrypt.N3DS
/// Indicates if the file should be encrypted or decrypted
/// Stream representing the input
/// Stream representing the output
- private void ProcessPartition(Cart cart,
- int index,
- bool encrypt,
- Stream input,
- Stream output)
+ private void ProcessPartition(Cart cart, int index, bool encrypt, Stream input, Stream output)
{
// Determine the Keys to be used
SetEncryptionKeys(cart, index, encrypt);
@@ -221,11 +213,7 @@ namespace NDecrypt.N3DS
/// Indicates if the file should be encrypted or decrypted
/// Stream representing the input
/// Stream representing the output
- private bool ProcessExtendedHeader(Cart cart,
- int index,
- bool encrypt,
- Stream input,
- Stream output)
+ private bool ProcessExtendedHeader(Cart cart, int index, bool encrypt, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;
@@ -269,11 +257,7 @@ namespace NDecrypt.N3DS
/// Indicates if the file should be encrypted or decrypted
/// Stream representing the input
/// Stream representing the output
- private void ProcessExeFSFileEntries(Cart cart,
- int index,
- bool encrypt,
- Stream input,
- Stream output)
+ private void ProcessExeFSFileEntries(Cart cart, int index, bool encrypt, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;
@@ -347,11 +331,7 @@ namespace NDecrypt.N3DS
/// Indicates if the file should be encrypted or decrypted
/// Stream representing the input
/// Stream representing the output
- private void ProcessExeFSFilenameTable(Cart cart,
- int index,
- bool encrypt,
- Stream input,
- Stream output)
+ private void ProcessExeFSFilenameTable(Cart cart, int index, bool encrypt, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;
@@ -387,11 +367,7 @@ namespace NDecrypt.N3DS
/// Indicates if the file should be encrypted or decrypted
/// Stream representing the input
/// Stream representing the output
- private bool ProcessExeFS(Cart cart,
- int index,
- bool encrypt,
- Stream input,
- Stream output)
+ private bool ProcessExeFS(Cart cart, int index, bool encrypt, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;
@@ -456,10 +432,7 @@ namespace NDecrypt.N3DS
/// Index of the partition
/// Stream representing the input
/// Stream representing the output
- private void DecryptExeFS(Cart cart,
- int index,
- Stream input,
- Stream output)
+ private void DecryptExeFS(Cart cart, int index, Stream input, Stream output)
{
// If the ExeFS size is 0, we log and return
if (cart.Partitions![index]!.ExeFSSizeInMediaUnits == 0)
@@ -487,10 +460,7 @@ namespace NDecrypt.N3DS
/// Stream representing the input
/// Stream representing the output
/// TODO: See how much can be extracted into a common method with Encrypt
- private bool DecryptRomFS(Cart cart,
- int index,
- Stream input,
- Stream output)
+ private bool DecryptRomFS(Cart cart, int index, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;
@@ -583,10 +553,7 @@ namespace NDecrypt.N3DS
/// Index of the partition
/// Stream representing the input
/// Stream representing the output
- private void EncryptExeFS(Cart cart,
- int index,
- Stream input,
- Stream output)
+ private void EncryptExeFS(Cart cart, int index, Stream input, Stream output)
{
// If the ExeFS size is 0, we log and return
if (cart.Partitions![index]!.ExeFSSizeInMediaUnits == 0)
@@ -617,10 +584,7 @@ namespace NDecrypt.N3DS
/// Stream representing the input
/// Stream representing the output
/// TODO: See how much can be extracted into a common method with Decrypt
- private bool EncryptRomFS(Cart cart,
- int index,
- Stream input,
- Stream output)
+ private bool EncryptRomFS(Cart cart, int index, Stream input, Stream output)
{
// Get required offsets
uint partitionOffsetMU = cart.Header!.PartitionsTable![index]!.Offset;