mirror of
https://gitea.tendokyu.moe/beerpsi/x.git
synced 2024-11-23 23:00:56 +01:00
remember to terminate your c-strings kids
This commit is contained in:
parent
5c40c357c6
commit
f8a759c3a4
@ -148,7 +148,7 @@ iv = secrets.token_bytes(16)
|
||||
encrypted_keypair = PKCS1_OAEP.new(HEADER_META_PUBKEY).encrypt(key + iv)
|
||||
header_meta = struct.pack("<Q", int(time.time())) + os.path.abspath(INPUT_FILE).encode(
|
||||
"utf-8"
|
||||
)
|
||||
) + b"\x00"
|
||||
header_meta += secrets.token_bytes(
|
||||
BOOTID["block_size"] - len(header_meta) - len(encrypted_keypair)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user