You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gaëtan Maiuri 64f13ee832 updates 7 years ago
cuper updates 7 years ago
mkriz updates 7 years ago
.gitignore Initial commit 7 years ago
README.md updates 7 years ago

README.md

Cuper

RIZ file header

                         32 bits
    <---------------------------------------------->
              16 bits                       8 bits
    <---------------------->            <---------->
    +----------------------------------------------+  <----------------------+
  0 |                IDENTIFICATOR                 |                         |
    +----------------------------------------------+                         |
  1 |          ARCH        |          OS           |                         |
    +----------------------------------------------+                         |
  2 |                     TIME                     |                         |
    +----------------------------------------------+                         |
  3 |          TYPE        |   PROT.   |    VER    |    Base informations.   |
    +----------------------------------------------+       Frame 0-9         |
  4 |           HL         |          MDL          |       + OPTIONS.        |
    +----------------------------------------------+                         |
5-9 |                   RESERVED                   |                         |
    +----------------------------------------------+                         |
    |                   OPTIONS                    |  <----------------------+
    +----------------------------------------------+  <----------------------+
    |                   METADATA                   |                         |
    +----------------------------------------------+         Contents.       |
    |                   PAYLOAD                    |   Frame post-OPTIONS-n. |
    +----------------------------------------------+  <----------------------+

Description

Nom du champ Position Longeur (bits) Valeur(s)
Identificator 0 32 0x7f 0x52 0x49 0x5a
Arch 4 16 0x0000 = no arch
0x0001 = i386
0x0002 = x86_64
OS 6 16 0x0000 = no OS
0x0001 = Linux
Time 8 32 current timestamp
Type 12 16 0x0000 = container
0x0001 = meta container
Protected 14 8 0x00 = unprotected
0x01 = AES-128
0x02 = AES-192
0x04 = AES-128
Version 15 8 0x00 = first (current)
HL 16 16 0x000a = no options
MDL 18 16 0x0000 = no metadata
RESERVED 20 120 0x0000 = not used
  • ARCH: l'identifiant de la machine cible (architecture du processeur).
  • OS: l'identifiant de la machine cible (environnement d'execution).
  • TIME: le timestamp de compilation.
  • TYPE: le type de conteneur, ex: conteneur, méta-conteneur, etc...
  • VER: la version de l'entête.
  • HL: la taille de l'entête en mot de 32 bits.
  • MDL: la taille des méta-données en mot de 32 bits.
  • RESERVED: 20 octets réservés.
  • OPTIONS: des données optionnels.
  • METADATA: les informations du contenu (see Cupfile).
  • PAYLOAD: le contenu.

NOTE:

  • Si HL == 10d (000ah, frame 0 to 9), alors il n'y à pas d'options.
  • Si MDL == 0d (0000h), alors il n'y à pas de méta-données.

Powered by TurnKey Linux.