diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-29 17:48:51 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-07 19:16:23 +0200 |
commit | 3ec054643e50f2845fb6a1a924b83bd71a0e2234 (patch) | |
tree | 313f2bcfba3610aa9bad98c3a7995d475712adc2 /src/core/crypto/partition_data_manager.h | |
parent | qt: Add rederive keyset menu option (diff) | |
download | yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar.gz yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar.bz2 yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar.lz yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar.xz yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.tar.zst yuzu-3ec054643e50f2845fb6a1a924b83bd71a0e2234.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/crypto/partition_data_manager.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/crypto/partition_data_manager.h b/src/core/crypto/partition_data_manager.h index 85bb2a110..45c7fecfa 100644 --- a/src/core/crypto/partition_data_manager.h +++ b/src/core/crypto/partition_data_manager.h @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #pragma once + #include <vector> #include "common/common_funcs.h" #include "common/common_types.h" @@ -22,9 +23,10 @@ enum class Package2Type { class PartitionDataManager { public: - const static u8 MAX_KEYBLOB_SOURCE_HASH; + static const u8 MAX_KEYBLOB_SOURCE_HASH; explicit PartitionDataManager(FileSys::VirtualDir sysdata_dir); + ~PartitionDataManager(); // BOOT0 bool HasBoot0() const; @@ -77,7 +79,7 @@ public: // PRODINFO bool HasProdInfo() const; FileSys::VirtualFile GetProdInfoRaw() const; - void DecryptProdInfo(std::array<u8, 0x10> bis_crypt, std::array<u8, 0x10> bis_tweak); + void DecryptProdInfo(std::array<u8, 0x20> bis_key); std::array<u8, 0x240> GetETicketExtendedKek() const; private: @@ -98,7 +100,6 @@ private: std::array<std::vector<u8>, 6> package2_spl; }; -template <size_t key_size = 0x10> -std::array<u8, key_size> FindKeyFromHex(const std::vector<u8>& binary, std::array<u8, 0x20> hash); +std::array<u8, 0x10> FindKeyFromHex16(const std::vector<u8>& binary, std::array<u8, 0x20> hash); } // namespace Core::Crypto |