LibHac/tests/LibHac.Tests/Fs/AesXtsFileSystemTests.cs

19 lines
438 B
C#
Raw Normal View History

using LibHac.Fs;
using LibHac.Fs.Fsa;
using LibHac.Tests.Fs.IFileSystemTestBase;
2021-12-19 07:07:09 +01:00
using LibHac.Tools.FsSystem;
2021-11-14 20:08:57 +01:00
namespace LibHac.Tests.Fs;
public class AesXtsFileSystemTests : IFileSystemTests
{
2021-11-14 20:08:57 +01:00
protected override IFileSystem CreateFileSystem()
{
2021-11-14 20:08:57 +01:00
var baseFs = new InMemoryFileSystem();
2021-11-14 20:08:57 +01:00
byte[] keys = new byte[0x20];
var xtsFs = new AesXtsFileSystem(baseFs, keys, 0x4000);
2021-11-14 20:08:57 +01:00
return xtsFs;
}
2021-12-19 07:07:09 +01:00
}