ctr_test_tools/TwlBkpCheck/Windows/FalsifyTwlBackup/Category9xx.cs
n2460 f20e008a2d FalsifyTwlBackup:カテゴリ毎に関数分けを行った。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_test_tools@29 6b0af911-cb57-b745-895f-eec5701120e1
2011-10-20 02:37:08 +00:00

39 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TwlBackupBlock;
namespace FalsifyTwlBackup
{
partial class Program
{
static void FalsifyingDataCategory9xx(int improperNo, Properties prop, byte[] improperData)
{
Blocks blocksForFalsifying = (Blocks)prop.decryptedBlocks.Clone();
HeaderBody header;
header = (HeaderBody)blocksForFalsifying.header.body;
SignatureBody signature;
signature = (SignatureBody)blocksForFalsifying.signature.body;
byte[] outData;
// その他のカテゴリ
switch (improperNo)
{
// 未加工のデータ
case 999:
outData = MergeEncryptBody(blocksForFalsifying, prop, improperData, NONE, NC_MAC_AND_HASHSET);
OutputFalsifiedData(improperNo, prop.outFolderPath, outData);
break;
// ありえない
default:
throw new InvalidOperationException();
}
}
}
}