summaryrefslogtreecommitdiff
path: root/src/core/crypto
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-25 11:48:23 -0400
committerZach Hilman <zachhilman@gmail.com>2018-09-04 14:27:33 -0400
commit5c8aff984e47c0f471e9eafd071031bc49ad8efc (patch)
treeac5ecdfc187f04a677b61f62eea6d6614326e636 /src/core/crypto
parent93703431e2d5318ac4a901b81d31230c40942043 (diff)
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.h2
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;
namespace Core::Crypto {
+constexpr u64 TICKET_FILE_TITLEKEY_OFFSET = 0x180;
+
using Key128 = std::array<u8, 0x10>;
using Key256 = std::array<u8, 0x20>;
using SHA256Hash = std::array<u8, 0x20>;