feat: update spec

This commit is contained in:
2023-09-02 00:49:13 +08:00
parent edeff5c265
commit 90e5f06ce7

View File

@@ -4,9 +4,9 @@ File ext: `*.tinyenc`
File format:
```text
[TAG; 2 bytes; short; BE; Always 1]
[LENGTH; 4 bytes; int; BE]
[META; LENGTH bytes]
[TAG; 2 bytes; u16; BE; Always 1]
[LENGTH; 4 bytes; u32; BE]
[META DATA; LENGTH bytes]
[ENCRYPTED_DATA; n bytes; AES/GCM]
```