diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-10-13 09:23:34 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-10-13 09:24:41 -0400 |
| commit | e0c76226ad3a100637348d822d2c5d7047f78bda (patch) | |
| tree | 1848d7c0e25ba3baa5a4a33d28345b71ae151825 /src/core/crypto/partition_data_manager.h | |
| parent | 3d9df49619a44bacda8c02fea60e63d9a7aa22fc (diff) | |
partition_data_manager: Take package2_keys by const reference
These are only ever read from, so we don't need to make a copy of all
the keys here.
Diffstat (limited to 'src/core/crypto/partition_data_manager.h')
| -rw-r--r-- | src/core/crypto/partition_data_manager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/crypto/partition_data_manager.h b/src/core/crypto/partition_data_manager.h index 9e448f720..0ad007c72 100644 --- a/src/core/crypto/partition_data_manager.h +++ b/src/core/crypto/partition_data_manager.h @@ -60,7 +60,8 @@ public: // Package2 bool HasPackage2(Package2Type type = Package2Type::NormalMain) const; FileSys::VirtualFile GetPackage2Raw(Package2Type type = Package2Type::NormalMain) const; - void DecryptPackage2(std::array<std::array<u8, 16>, 0x20> package2, Package2Type type); + void DecryptPackage2(const std::array<std::array<u8, 16>, 0x20>& package2_keys, + Package2Type type); const std::vector<u8>& GetPackage2FSDecompressed( Package2Type type = Package2Type::NormalMain) const; std::array<u8, 0x10> GetKeyAreaKeyApplicationSource( |
