-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeys.example.py
More file actions
79 lines (78 loc) · 3.47 KB
/
Copy pathkeys.example.py
File metadata and controls
79 lines (78 loc) · 3.47 KB
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
# keys.example.py — TEMPLATE for the PSP Baryon authentication keys/secrets.
#
# ############################################################################
# # THESE ARE PLACEHOLDERS, NOT REAL KEYS. The tool will NOT work until #
# # you supply valid values. #
# # #
# # Setup: #
# # 1. Copy this file to keys.py (keys.py is git-ignored) #
# # 2. Replace every "00.." placeholder with the real value #
# # 3. Copy keys.py to the Pico alongside main.py and neopixel.py #
# # #
# # The real per-version keys/secrets are Sony-proprietary and are NOT #
# # distributed with this project. Source them yourself. #
# # #
# # Shapes (must be preserved): #
# # keystore[v] -> 16-byte AES key (32 hex chars) #
# # challenge1_secret[v] -> 8 bytes (16 hex chars) #
# # challenge2_secret[v] -> 8 bytes (16 hex chars) #
# # go_key1/go_key2/go_secret -> 16 bytes (32 hex chars) #
# ############################################################################
# Per-version 16-byte AES keys (fill in the versions your target board uses).
keystore = {
0x00: "00000000000000000000000000000000",
0x01: "00000000000000000000000000000000",
0x02: "00000000000000000000000000000000",
0x03: "00000000000000000000000000000000",
0x04: "00000000000000000000000000000000",
0x05: "00000000000000000000000000000000",
0x06: "00000000000000000000000000000000",
0x08: "00000000000000000000000000000000",
0x09: "00000000000000000000000000000000",
0x0A: "00000000000000000000000000000000",
0x0B: "00000000000000000000000000000000",
0x0C: "00000000000000000000000000000000",
0x0D: "00000000000000000000000000000000",
0x2F: "00000000000000000000000000000000",
0x97: "00000000000000000000000000000000",
0xB3: "00000000000000000000000000000000",
0xD9: "00000000000000000000000000000000",
0xEB: "00000000000000000000000000000000"
}
challenge1_secret = {
0x00: "0000000000000000",
0x01: "0000000000000000",
0x02: "0000000000000000",
0x03: "0000000000000000",
0x04: "0000000000000000",
0x05: "0000000000000000",
0x06: "0000000000000000",
0x08: "0000000000000000",
0x0A: "0000000000000000",
0x0D: "0000000000000000",
0x2F: "0000000000000000",
0x97: "0000000000000000",
0xB3: "0000000000000000",
0xD9: "0000000000000000",
0xEB: "0000000000000000"
}
challenge2_secret = {
0x00: "0000000000000000",
0x01: "0000000000000000",
0x02: "0000000000000000",
0x03: "0000000000000000",
0x04: "0000000000000000",
0x05: "0000000000000000",
0x06: "0000000000000000",
0x08: "0000000000000000",
0x0A: "0000000000000000",
0x0D: "0000000000000000",
0x2F: "0000000000000000",
0x97: "0000000000000000",
0xB3: "0000000000000000",
0xD9: "0000000000000000",
0xEB: "0000000000000000"
}
go_key1 = bytes.fromhex("00000000000000000000000000000000")
go_key2 = bytes.fromhex("00000000000000000000000000000000")
go_secret = bytes.fromhex("00000000000000000000000000000000")