diff options
| author | 2018-08-25 11:48:23 -0400 | |
|---|---|---|
| committer | 2018-09-04 14:27:33 -0400 | |
| commit | 5c8aff984e47c0f471e9eafd071031bc49ad8efc (patch) | |
| tree | ac5ecdfc187f04a677b61f62eea6d6614326e636 /src/core/crypto | |
| parent | file_sys: Add Nintendo Submission Package (NSP) (diff) | |
| download | yuzu-5c8aff984e47c0f471e9eafd071031bc49ad8efc.tar.gz yuzu-5c8aff984e47c0f471e9eafd071031bc49ad8efc.tar.xz yuzu-5c8aff984e47c0f471e9eafd071031bc49ad8efc.zip | |
card_image: Parse XCI secure partition with NSP
Eliminated duplicate code and adds support for Rev1+ carts
Diffstat (limited to 'src/core/crypto')
| -rw-r--r-- | src/core/crypto/key_manager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index bf51bf31f..ce67913bb 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h | |||
| @@ -17,6 +17,8 @@ enum class ResultStatus : u16; | |||
| 17 | 17 | ||
| 18 | namespace Core::Crypto { | 18 | namespace Core::Crypto { |
| 19 | 19 | ||
| 20 | constexpr u64 TICKET_FILE_TITLEKEY_OFFSET = 0x180; | ||
| 21 | |||
| 20 | using Key128 = std::array<u8, 0x10>; | 22 | using Key128 = std::array<u8, 0x10>; |
| 21 | using Key256 = std::array<u8, 0x20>; | 23 | using Key256 = std::array<u8, 0x20>; |
| 22 | using SHA256Hash = std::array<u8, 0x20>; | 24 | using SHA256Hash = std::array<u8, 0x20>; |