Skip to content

Commit

Permalink
Fix size for index
Browse files Browse the repository at this point in the history
  • Loading branch information
eXhumer committed May 3, 2020
1 parent 7dd69e1 commit 84154d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TinGen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def rand_aes_key_generator() -> bytes:

with open(out_path, "wb") as out_stream:
out_stream.write(b"TINFOIL")
out_stream.write(bytes([compression_flag]))
out_stream.write(compression_flag.to_bytes(1, byteorder="little"))
out_stream.write(session_key)
out_stream.write(data_size.to_bytes(8, "little"))
out_stream.write(to_write_buffer)

0 comments on commit 84154d5

Please sign in to comment.