From 7a747bf7812896eb3fd3bcb05c7c180d0106655b Mon Sep 17 00:00:00 2001 From: N2614 Date: Wed, 16 Nov 2011 23:54:37 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=9E=E3=83=BC=E3=82=B8=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=9F=E3=83=AA=E3=83=93=E3=82=B8=E3=83=A7=E3=83=B3517?= =?UTF-8?q?=E3=82=92=20branches/work/VerificationFailed=20=E3=81=8B?= =?UTF-8?q?=E3=82=89=E5=8F=96=E3=82=8A=E6=B6=88=E3=81=99:=2032=E3=83=90?= =?UTF-8?q?=E3=82=A4=E3=83=88=E3=82=A2=E3=83=A9=E3=82=A4=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E3=83=92=E3=83=BC=E3=83=97=E3=82=92=E6=B8=A1=E3=81=99=20......?= =?UTF-8?q?..=20=E3=81=99=E3=81=A7=E3=81=AB32=E3=83=90=E3=82=A4=E3=83=88?= =?UTF-8?q?=E3=82=A2=E3=83=A9=E3=82=A4=E3=83=B3=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@518 385bec56-5757-e545-9c3a-d8741f4650f1 --- .../sources/ConsoleBackup/Exporter.cpp | 12 ++++++------ .../sources/ConsoleRestore/Importer.cpp | 12 ++++++------ .../sources/tools/CmacAdder/main.cpp | 4 ++-- .../sources/tools/ExportedDataDecrypter/main.cpp | 4 ++-- .../sources/tools/ExportedDataVerifier/main.cpp | 4 ++-- .../sources/tools/FatDataEncrypter/main.cpp | 4 ++-- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/branches/work/VerificationFailed/sources/ConsoleBackup/Exporter.cpp b/branches/work/VerificationFailed/sources/ConsoleBackup/Exporter.cpp index 6728d3d..b7e6470 100644 --- a/branches/work/VerificationFailed/sources/ConsoleBackup/Exporter.cpp +++ b/branches/work/VerificationFailed/sources/ConsoleBackup/Exporter.cpp @@ -489,14 +489,14 @@ void WriteTwlData(enum common::TWL_PATH_INDEX path) // 進捗表示用 common::InitializeTransferProgress(fileSize); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 2); void* buf = writeHeap.GetAddr(); if (buf != NULL) { @@ -616,14 +616,14 @@ void WriteTwlSaveData() result = common::SdMountManager::Mount(); COMMON_LOGGER_RETURN_VOID_SET_BOOL_IF_FAILED(result, s_IsExportSucceeded); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 2); void* buf = writeHeap.GetAddr(); if (buf != NULL) { @@ -767,14 +767,14 @@ void ExportThreadFunc() result = common::SdMountManager::Mount(); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager writeHeap(bufSize, AES_BLOCK_SIZE * 2); void* buf = writeHeap.GetAddr(); if (buf != NULL) { diff --git a/branches/work/VerificationFailed/sources/ConsoleRestore/Importer.cpp b/branches/work/VerificationFailed/sources/ConsoleRestore/Importer.cpp index 94d77f4..fed88e8 100644 --- a/branches/work/VerificationFailed/sources/ConsoleRestore/Importer.cpp +++ b/branches/work/VerificationFailed/sources/ConsoleRestore/Importer.cpp @@ -706,14 +706,14 @@ void ImportThreadFunc() result = common::SdMountManager::Mount(); COMMON_LOGGER_RETURN_VOID_SET_BOOL_IF_FAILED(result, s_IsImportSucceeded); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { @@ -1493,7 +1493,7 @@ void ImportTwlData(enum common::TWL_PATH_INDEX path, s64 fileSize) result = common::SdMountManager::Mount(); COMMON_LOGGER_RETURN_VOID_SET_BOOL_IF_FAILED(result, s_IsImportSucceeded); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { @@ -1503,7 +1503,7 @@ void ImportTwlData(enum common::TWL_PATH_INDEX path, s64 fileSize) // ファイルサイズ設定 common::InitializeTransferProgress(fileSize); - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { @@ -1538,7 +1538,7 @@ void ImportTwlTitleSaveData(s64 fileSize) result = common::SdMountManager::Mount(); COMMON_LOGGER_RETURN_VOID_SET_BOOL_IF_FAILED(result, s_IsImportSucceeded); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); NN_LOG("AllocatableSize = %d\n", bufSize); if(bufSize > common::FILE_COPY_HEAP_SIZE) { @@ -1548,7 +1548,7 @@ void ImportTwlTitleSaveData(s64 fileSize) // ファイルサイズ設定 common::InitializeTransferProgress(fileSize); - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { diff --git a/branches/work/VerificationFailed/sources/tools/CmacAdder/main.cpp b/branches/work/VerificationFailed/sources/tools/CmacAdder/main.cpp index 22b7a16..c8c1f4c 100644 --- a/branches/work/VerificationFailed/sources/tools/CmacAdder/main.cpp +++ b/branches/work/VerificationFailed/sources/tools/CmacAdder/main.cpp @@ -179,13 +179,13 @@ void AddCmacThreadFunc() result = common::SdMountManager::Mount(); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { diff --git a/branches/work/VerificationFailed/sources/tools/ExportedDataDecrypter/main.cpp b/branches/work/VerificationFailed/sources/tools/ExportedDataDecrypter/main.cpp index 131ace4..d07c99f 100644 --- a/branches/work/VerificationFailed/sources/tools/ExportedDataDecrypter/main.cpp +++ b/branches/work/VerificationFailed/sources/tools/ExportedDataDecrypter/main.cpp @@ -462,14 +462,14 @@ void DecryptThreadFunc() result = common::SdMountManager::Mount(); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } common::SdReaderWriter sdWriter; - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { diff --git a/branches/work/VerificationFailed/sources/tools/ExportedDataVerifier/main.cpp b/branches/work/VerificationFailed/sources/tools/ExportedDataVerifier/main.cpp index ba3afeb..f2748da 100644 --- a/branches/work/VerificationFailed/sources/tools/ExportedDataVerifier/main.cpp +++ b/branches/work/VerificationFailed/sources/tools/ExportedDataVerifier/main.cpp @@ -384,13 +384,13 @@ void VerifyThreadFunc() result = common::SdMountManager::Mount(); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) { diff --git a/branches/work/VerificationFailed/sources/tools/FatDataEncrypter/main.cpp b/branches/work/VerificationFailed/sources/tools/FatDataEncrypter/main.cpp index 8a35d5b..f09c8e1 100644 --- a/branches/work/VerificationFailed/sources/tools/FatDataEncrypter/main.cpp +++ b/branches/work/VerificationFailed/sources/tools/FatDataEncrypter/main.cpp @@ -305,13 +305,13 @@ void EncryptThreadFunc() result = common::SdMountManager::Mount(); - size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 4); + size_t bufSize = common::GetAllocatableSize(AES_BLOCK_SIZE * 2); if(bufSize > common::FILE_COPY_HEAP_SIZE) { bufSize = common::FILE_COPY_HEAP_SIZE; } - common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 4); + common::HeapManager heap(bufSize, AES_BLOCK_SIZE * 2); void* buf = heap.GetAddr(); if (buf != NULL) {