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) {