Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a new version of AOTP: http://pastebin.com/tsRuVUjY
- The Header has changed and looks now like this:
- Header Format (the value after the colon indicates the size in bytes):
- <File length:8><Name length:4><Name:<Name length>><0:4><Header length:4>
- File length: Length of the file in bytes without padding; 64 bit integer
- Name length: File Name length in bytes (not chars, as an UTF-8 char can span up to 4 bytes); 32 bit integer
- Name: File name itself (without path) as UTF-8 string
- 0: Number 0 ar 4 bytes {0,0,0,0} to indicate no more headers following. Later more headers are possible.
- Header length: length of header in bytes, including this number itself; 32 bit integer
- header length includes itself, currently it is always: Name length + 20
- File Format:
- <Encrypted content>[padding]<Header>
- Encrypted content: This is the AOTP encrypted content of the file
- Padding: optional randomly chosen chars. It is only present, if the file + header is smaller than the biggest file + header in the set.
- Header: See above
- Together with <File length> and <Header length> the padding can
- be cut out of the stream and does not needs to be decrypted at all, greatly speeding up the process for small files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement