forked from mathieulh/sceutils
-
Notifications
You must be signed in to change notification settings - Fork 1
/
keys_internal.py
119 lines (107 loc) · 2.81 KB
/
keys_internal.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import binascii
from scetypes import KeyType, KeyStore, SceType, SelfType
ENC_KEY = binascii.a2b_hex('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
ENC_IV = binascii.a2b_hex('AF5F2CB04AC1751ABF51CEF1C8096210')
SCEWM_KEY = binascii.a2b_hex("AB7097356FDD49D83878540167F0C4AD")
SCEWM_IV = binascii.a2b_hex("85537C5A56BD15DF0EB5F7F0D9E276E6")
SCE_KEYS = KeyStore()
SCE_KEYS.register(
KeyType.METADATA,
SceType.SPKG,
0,
'23F1D525244266E6DA7A52DA9446318301EE8CC58D54901AE94D93010F7DEE6B',
'3721F7C05DE5F55ECC39BDDB4A6C585D',
0x00000000000,
0xFFF00000000,
SelfType.NONE
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
0,
'AED9D76EE1E29290002BFF32D4B0656EEE40FBDA4F8B55BE5BE0ED83530F27D2',
'DB50912F2416B54F7F36227169ECE500',
0x00000000000,
0xFFF00000000,
SelfType.SECURE
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
0,
'9D3F28DE30DED1D503DB6FA762A571C422A88D0F361899EF36D357059C72EC43',
'30E43CFB57D418A5A0D32A9939D23501',
0x00000000000,
0xFFF00000000,
SelfType.BOOT
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SRVK,
0,
'EAB14F9BE15EAEC1603BE63C9FCDE4099D601FB0E9FC4DF250B8DEC635987A1C',
'30B9E61707993B635D0E182446DB0B8D',
0x00000000000,
0xFFF00000000,
SelfType.NONE
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
0,
'74F6D2A1D2A093AE32B83337E0AE4AD2E6D93B034F5BF3B68DB77131883310D4',
'926AB55BDADC45DBB610E90E56A0368C',
0x00000000000,
0xFFF00000000,
SelfType.KERNEL
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
0,
'322D706CB6EBEA14DEF7BFE45F812971347DC95CD7697C16A71EA4B2A1E12C0D',
'31FA2E606031EDF39665B5616E9F937D',
0x00000000000,
0xFFF00000000,
SelfType.USER
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
1,
'DA3BE69B77B3A857EA4F6CDC73C0AB0590C0A95E145B8D55D2D3A6447C247F46',
'A0385383AB31497E3AFB7CCDDB30CA5A',
0x00000000000,
0xFFF00000000,
SelfType.USER
)
SCE_KEYS.register(
KeyType.NPDRM,
SceType.SELF,
0,
'C10368BF3D2943BC6E5BD05E46A9A7B6',
'00000000000000000000000000000000',
0x00000000000,
0xFFFFFFFFFFFFFFFFFFFFFF,
SelfType.APP
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
0,
'AAA508FA5E85EAEE597ED2B27804D22287CFADF1DF32EDC7A7C58E8C9AA8BB36',
'CD1BD3A59200CC67A3B804808DC2AE73',
0x00000000000,
0x16920000000,
SelfType.APP
)
SCE_KEYS.register(
KeyType.METADATA,
SceType.SELF,
1,
'4181B2DF5F5D94D3C80B7D86EACF1928533A49BA58EDE2B43CDEE7E572568BD4',
'B1678C0543B6C1997B63A6F4F3C8FD33',
0x00000000000,
0xFFFFFFFFFFFFFFFFFFFFFF,
SelfType.APP
)