From 90e5f06ce77ee228afd400af11c79206da7067c2 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 2 Sep 2023 00:49:13 +0800 Subject: [PATCH] feat: update spec --- TinyEncryptSpecV1.1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TinyEncryptSpecV1.1.md b/TinyEncryptSpecV1.1.md index 444b37a..04fdade 100644 --- a/TinyEncryptSpecV1.1.md +++ b/TinyEncryptSpecV1.1.md @@ -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] ```