Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hakavlad committed Mar 31, 2024
1 parent 86f6dcd commit d61ee7b
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,10 @@

## Encrypted file format

`tird` encrypted files (cryptoblobs) are indistinguishable from uniform random data. `tird` produces cryptoblobs contain bilateral randomized padding with uniform random data ([PURBs](https://en.wikipedia.org/wiki/PURB_(cryptography))). This minimizes metadata leaks from the file format and makes it possible to hide cryptoblobs among other random data.
`tird` encrypted files (cryptoblobs) are indistinguishable from uniform random data and have no identifiable headers. `tird` produces cryptoblobs contain bilateral [randomized padding](https://en.wikipedia.org/wiki/Padding_(cryptography)#Randomized_padding) with uniform random data ([PURBs](https://en.wikipedia.org/wiki/PURB_(cryptography))). This minimizes metadata leaks from the file format and makes it possible to hide cryptoblobs among other random data.

Cryptoblob structure:

```
512 B 0+ B
+----------+---------------+
| Comments | File contents |
+----------+---------------+
16 B 0+ B | Plaintext/Payload | 64 B 0+ B 16 B
+------+---------+--------------------------+---------+---------+------+
| Salt | Padding | Ciphertext | MAC tag | Padding | Salt |
+------+---------+--------------------------+---------+---------+------+
| Random bytes | Random-looking bytes | Random bytes |
+----------------+------------------------------------+----------------+
```



```
512 B 0+ B
+~~~~~~~~~~+~~~~~~~~~~~~~~~+
Expand All @@ -65,12 +50,6 @@ Cryptoblob structure:
+~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~+
```







## Tradeoffs and limitations

- `tird` does not support public-key cryptography.
Expand Down

0 comments on commit d61ee7b

Please sign in to comment.