This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cryptography.hazmat.primitives.asymmetric.padding import PKCS1v15 as pd | |
from cryptography.hazmat.primitives.hashes import SHA256 as sha256 | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
import cryptography.hazmat.backends | |
with open("ncch.bin", "rb") as f: | |
ncch_sig = f.read(0x100) | |
ncch_header_data = f.read(0x100) | |
with open("extheader.bin", "rb") as f: |