mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-09 21:51:45 +00:00
sept-s: fix building without keys (output won't work though)
This commit is contained in:
parent
d0ff791260
commit
7d170259d3
3 changed files with 13 additions and 2 deletions
7
sept/sept-secondary/KEYS_template.py
Normal file
7
sept/sept-secondary/KEYS_template.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
HOVI_ENC_KEY_PRD = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
HOVI_ENC_KEY_DEV = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
HOVI_SIG_KEY_PRD = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
HOVI_SIG_KEY_DEV = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
HOVI_KEK_KEY_PRD = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
HOVI_KEK_KEY_DEV = '00000000000000000000000000000000'.decode('hex')
|
||||||
|
IV = '00000000000000000000000000000000'.decode('hex')
|
|
@ -132,7 +132,7 @@ clean:
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
else
|
else
|
||||||
.PHONY: all
|
.PHONY: all $(OUTPUT).enc
|
||||||
|
|
||||||
DEPENDS := $(OFILES:.o=.d)
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,11 @@ import sys
|
||||||
from struct import pack as pk, unpack as up
|
from struct import pack as pk, unpack as up
|
||||||
from Crypto.Cipher import AES
|
from Crypto.Cipher import AES
|
||||||
from Crypto.Hash import CMAC
|
from Crypto.Hash import CMAC
|
||||||
import KEYS
|
try:
|
||||||
|
import KEYS
|
||||||
|
except ImportError:
|
||||||
|
import KEYS_template as KEYS
|
||||||
|
print('Warning: output will not work on 7.0.0+!')
|
||||||
|
|
||||||
def shift_left_xor_rb(s):
|
def shift_left_xor_rb(s):
|
||||||
N = int(s.encode('hex'), 16)
|
N = int(s.encode('hex'), 16)
|
||||||
|
|
Loading…
Reference in a new issue