mirror of
https://github.com/rvtr/ctr_test_tools.git
synced 2025-10-31 13:41:24 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_test_tools@13 6b0af911-cb57-b745-895f-eec5701120e1
29 lines
1013 B
C#
29 lines
1013 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
using TwlBackupBlock;
|
|
|
|
namespace FalsifyTwlBackup
|
|
{
|
|
class Properties
|
|
{
|
|
public Blocks decryptedBlocks; // 復号化されたバックアップデータ
|
|
public byte[] keyData; // ブロック暗号化のための鍵データ
|
|
public byte[] macKeyData; // MAC生成のための鍵データ
|
|
|
|
public string outFolderPath; // 出力フォルダ名
|
|
|
|
public void SetOutputFolderPath(string twlBackupDataName)
|
|
{
|
|
// 出力フォルダを入力ファイルと同じディレクトリに
|
|
outFolderPath = Path.Combine(Path.GetDirectoryName(Path.GetFullPath(twlBackupDataName)), @"FalsifiedTwlBackup");
|
|
Directory.CreateDirectory(outFolderPath); // 出力フォルダを作成
|
|
}
|
|
|
|
// TODO SetKeyData()とGetKeyData()的なものを用意して、privateにしたい
|
|
// TODO 出力ディレクトリを変更可能に
|
|
}
|
|
}
|