2020-02-03 08:44:50 +01:00
|
|
|
|
using LibHac.Fs;
|
2020-06-10 07:55:59 +02:00
|
|
|
|
using LibHac.Fs.Fsa;
|
2020-02-03 08:44:50 +01:00
|
|
|
|
using LibHac.FsSystem;
|
|
|
|
|
using LibHac.Tests.Fs.IFileSystemTestBase;
|
|
|
|
|
|
2021-11-14 20:08:57 +01:00
|
|
|
|
namespace LibHac.Tests.Fs;
|
|
|
|
|
|
|
|
|
|
public class AesXtsFileSystemTests : IFileSystemTests
|
2020-02-03 08:44:50 +01:00
|
|
|
|
{
|
2021-11-14 20:08:57 +01:00
|
|
|
|
protected override IFileSystem CreateFileSystem()
|
2020-02-03 08:44:50 +01:00
|
|
|
|
{
|
2021-11-14 20:08:57 +01:00
|
|
|
|
var baseFs = new InMemoryFileSystem();
|
2020-02-03 08:44:50 +01:00
|
|
|
|
|
2021-11-14 20:08:57 +01:00
|
|
|
|
byte[] keys = new byte[0x20];
|
|
|
|
|
var xtsFs = new AesXtsFileSystem(baseFs, keys, 0x4000);
|
2020-02-03 08:44:50 +01:00
|
|
|
|
|
2021-11-14 20:08:57 +01:00
|
|
|
|
return xtsFs;
|
2020-02-03 08:44:50 +01:00
|
|
|
|
}
|
|
|
|
|
}
|