core: Generalize QuickDecryptor

This is now a class template. This would be useful when we implement NCCH decryption.
This commit is contained in:
zhupengfei
2020-04-30 18:05:58 +08:00
parent 576053d995
commit c831a0785e
4 changed files with 73 additions and 73 deletions
+2 -3
View File
@@ -32,8 +32,7 @@ public:
* @return true on success, false otherwise
*/
bool DecryptAndWriteFile(const std::string& source, const std::string& destination,
const QuickDecryptor::ProgressCallback& callback = [](std::size_t,
std::size_t) {});
const ProgressCallback& callback = [](std::size_t, std::size_t) {});
void Abort();
@@ -53,7 +52,7 @@ public:
private:
std::string root_folder;
QuickDecryptor quick_decryptor;
QuickDecryptor<> quick_decryptor;
};
/// Interface for reading an SDMC file like a normal IOFile. This is read-only.