From 339ee11e4049a44ddd2089beb685128d1f82947d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Sep 2017 22:03:37 +0200 Subject: [PATCH] updates --- README.md | 53 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 02702ed..19e1798 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,44 @@ -## File header +# Cuper +## RIZ file header ```plain - 32 bits -<----------------------------------------------> -+----------------------------------------------+ -| ------------------------------------------------+ -| ------------------------------------------------+ -| ------------------------------------------------+ -| ------------------------------------------------+ + 32 bits + <----------------------------------------------> + 16 bits + <----------------------> + +----------------------------------------------+ + 0 | IDENTIFICATOR | + +----------------------------------------------+ + 1 | ARCH | OS | + +----------------------------------------------+ + 2 | TIME | + +----------------------------------------------+ + 3 | TYPE | PROT. | VER | + +----------------------------------------------+ + 4 | HL | MDL | + +----------------------------------------------+ +5-9 | RESERVED | + +----------------------------------------------+ + | OPTIONS | + +----------------------------------------------+ + | METADATA | + +----------------------------------------------+ + | PAYLOAD | + +----------------------------------------------+ ``` -| Nom du champ | Indice | Valeur | -|:------------:|:------:|:-------| -| Identification || +| Nom du champ | Position | Longeur (bits) | Valeur(s) | +|:------------:|:------:|:--------------:|:---------:| +| Identificator | 0 | 32 | `0x7f 0x52 0x49 0x5a` | +| Arch | 4 | 16 | `0x0` = no arch | +|||| `0x01` = i386 | +|||| `0x02` = x86_64 | +| OS | 6 | 16 | `0x0` = no OS | +|||| `0x01` = linux | +| Time | 8 | 32 | *current timestamp* | +| Type | 12 | 16 | `0x0` = container | +|||| `0x1` = meta container | +| Protected | 14 | 8 | `0x0` = unprotected | +|||| `0x1` = aes | * Magic number (32 bits: `0x7f` `0x52` `0x49` `0x5a`), la signature du fichier: DELRIZ. * arch (16 bits), l'identifiant de la machine cible (architecture du processeur).