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.

57 lines
2.4 KiB

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
  7. <---------------------->
  8. +----------------------------------------------+
  9. 0 | IDENTIFICATOR |
  10. +----------------------------------------------+
  11. 1 | ARCH | OS |
  12. +----------------------------------------------+
  13. 2 | TIME |
  14. +----------------------------------------------+
  15. 3 | TYPE | PROT. | VER |
  16. +----------------------------------------------+
  17. 4 | HL | MDL |
  18. +----------------------------------------------+
  19. 5-9 | RESERVED |
  20. +----------------------------------------------+
  21. | OPTIONS |
  22. +----------------------------------------------+
  23. | METADATA |
  24. +----------------------------------------------+
  25. | PAYLOAD |
  26. +----------------------------------------------+
  27. ```
  28. | Nom du champ | Position | Longeur (bits) | Valeur(s) |
  29. |:------------:|:------:|:--------------:|:---------:|
  30. | Identificator | 0 | 32 | `0x7f 0x52 0x49 0x5a` |
  31. | Arch | 4 | 16 | `0x0` = no arch |
  32. |||| `0x01` = i386 |
  33. |||| `0x02` = x86_64 |
  34. | OS | 6 | 16 | `0x0` = no OS |
  35. |||| `0x01` = linux |
  36. | Time | 8 | 32 | *current timestamp* |
  37. | Type | 12 | 16 | `0x0` = container |
  38. |||| `0x1` = meta container |
  39. | Protected | 14 | 8 | `0x0` = unprotected |
  40. |||| `0x1` = aes |
  41. * Magic number (32 bits: `0x7f` `0x52` `0x49` `0x5a`), la signature du fichier: DELRIZ.
  42. * arch (16 bits), l'identifiant de la machine cible (architecture du processeur).
  43. * os (16 bits), l'identifiant de la machine cible (environnement d'execution).
  44. * timestamp (32 bits), le timestamp de compilation.
  45. * type (16 bits), le type de conteneur, ex: conteneur, méta-conteneur, etc...
  46. * protected (8 bits), 0x01 si le conteneur est chiffré.
  47. * version (8 bits), la version de l'entête.
  48. * HL (16 bits), la taille de l'entête en mots de 32 bits.
  49. * MDL (16 bits), la taille des méta-données en mode de 32 bits.
  50. * reserved (20 bytes), 20 octets réservés.
  51. * options, les informations optionnels.
  52. * méta-données.
  53. * payload.
  54. > **NOTE**: Si `HL` == 5, alors il n'y à pas d'options.

Powered by TurnKey Linux.