mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Move AesXtsFileSystem
This commit is contained in:
parent
f73d206901
commit
0846b86249
8 changed files with 17 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
using LibHac.Common.Keys;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using static LibHac.FsSrv.FsCreator.IEncryptedFileSystemCreator;
|
||||
|
||||
namespace LibHac.FsSrv.FsCreator;
|
||||
|
@ -33,4 +33,4 @@ public class EncryptedFileSystemCreator : IEncryptedFileSystemCreator
|
|||
|
||||
return Result.Success;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@ using LibHac.Fs.Fsa;
|
|||
using LibHac.FsSystem;
|
||||
using LibHac.Ncm;
|
||||
using LibHac.Ns;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Tools.FsSystem.NcaUtils;
|
||||
using LibHac.Tools.FsSystem.Save;
|
||||
using LibHac.Tools.Ncm;
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Util;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class AesXtsDirectory : IDirectory
|
||||
{
|
||||
|
@ -93,4 +94,4 @@ public class AesXtsDirectory : IDirectory
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,9 +2,10 @@
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Util;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class AesXtsFile : IFile
|
||||
{
|
||||
|
@ -130,4 +131,4 @@ public class AesXtsFile : IFile
|
|||
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -5,10 +5,10 @@ using System.Text;
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
|
||||
using LibHac.FsSystem;
|
||||
using Aes = LibHac.Crypto.Aes;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class AesXtsFileHeader
|
||||
{
|
|
@ -3,9 +3,10 @@ using System.Diagnostics;
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Util;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class AesXtsFileSystem : IFileSystem
|
||||
{
|
||||
|
@ -283,4 +284,4 @@ public class AesXtsFileSystem : IFileSystem
|
|||
|
||||
file.Get.Write(0, header.ToBytes(false), WriteOption.Flush).ThrowIfFailure();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,6 +6,7 @@ using LibHac.Crypto;
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Util;
|
||||
using static hactoolnet.Print;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tests.Fs.IFileSystemTestBase;
|
||||
using LibHac.Tools.FsSystem;
|
||||
|
||||
namespace LibHac.Tests.Fs;
|
||||
|
||||
|
@ -16,4 +16,4 @@ public class AesXtsFileSystemTests : IFileSystemTests
|
|||
|
||||
return xtsFs;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue