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.

65 lines
3.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # Cuper
  2. ## RIZ file header
  3. ```plain
  4. 32 bits
  5. <---------------------------------------------->
  6. 16 bits 8 bits
  7. <----------------------> <---------->
  8. +----------------------------------------------+ <----------------------+
  9. 0 | IDENTIFICATOR | |
  10. +----------------------------------------------+ |
  11. 1 | ARCH | OS | |
  12. +----------------------------------------------+ |
  13. 2 | TIME | |
  14. +----------------------------------------------+ |
  15. 3 | TYPE | PROT. | VER | Base informations. |
  16. +----------------------------------------------+ Frame 0-9 |
  17. 4 | HL | MDL | + OPTIONS. |
  18. +----------------------------------------------+ |
  19. 5-9 | RESERVED | |
  20. +----------------------------------------------+ |
  21. | OPTIONS | <----------------------+
  22. +----------------------------------------------+ <----------------------+
  23. | METADATA | |
  24. +----------------------------------------------+ Contents. |
  25. | PAYLOAD | Frame post-OPTIONS-n. |
  26. +----------------------------------------------+ <----------------------+
  27. ```
  28. **Description**
  29. | Nom du champ | Position | Longeur (bits) | Valeur(s) |
  30. |:-------------|:--------:|:--------------:|:----------|
  31. | **Identificator** | 0 | 32 | `0x7f 0x52 0x49 0x5a` |
  32. | **Arch** | 4 | 16 | `0x0000` = no arch |
  33. |||| `0x0001` = i386 |
  34. |||| `0x0002` = x86_64 |
  35. | **OS** | 6 | 16 | `0x0000` = no OS |
  36. |||| `0x0001` = Linux |
  37. | **Time** | 8 | 32 | *current timestamp* |
  38. | **Type** | 12 | 16 | `0x0000` = container |
  39. |||| `0x0001` = meta container |
  40. | **Protected** | 14 | 8 | `0x00` = unprotected |
  41. |||| `0x01` = AES-128 |
  42. |||| `0x02` = AES-192 |
  43. |||| `0x04` = AES-128 |
  44. | **Version** | 15 | 8 | `0x00` = first (current) |
  45. | **HL** | 16 | 16 | `0x000a` = no options |
  46. | **MDL** | 18 | 16 | `0x0000` = no metadata |
  47. | **RESERVED** | 20 | 120 | `0x0000` = not used |
  48. * **ARCH**: l'identifiant de la machine cible (architecture du processeur).
  49. * **OS**: l'identifiant de la machine cible (environnement d'execution).
  50. * **TIME**: le timestamp de compilation.
  51. * **TYPE**: le type de conteneur, ex: conteneur, méta-conteneur, etc...
  52. * **VER**: la version de l'entête.
  53. * **HL**: la taille de l'entête en **mot de 32 bits**.
  54. * **MDL**: la taille des méta-données en **mot de 32 bits**.
  55. * **RESERVED**: 20 octets réservés.
  56. * **OPTIONS**: des données optionnels.
  57. * **METADATA**: les informations du contenu (see Cupfile).
  58. * **PAYLOAD**: le contenu.
  59. > **NOTE**:
  60. * Si `HL` == `10d` (`000ah`, frame 0 to 9), alors il n'y à pas d'options.
  61. * Si `MDL` == `0d` (`0000h`), alors il n'y à pas de méta-données.

Powered by TurnKey Linux.