sec_cipher_header.h 824 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _CIPHERHEADER_H
  2. #define _CIPHERHEADER_H
  3. /**************************************************************************
  4. * CIPHER HEADER FORMAT
  5. **************************************************************************/
  6. #define CUSTOM_NAME "CUSTOM_NAME"
  7. #define IMAGE_VERSION "IMAGE_VERSION"
  8. #define CIPHER_IMG_MAGIC (0x63636363)
  9. #define CIPHER_IMG_HEADER_SIZE (128)
  10. typedef struct _SEC_CIPHER_IMG_HEADER {
  11. unsigned int magic_number;
  12. unsigned char cust_name[32];
  13. unsigned int image_version;
  14. unsigned int image_length;
  15. unsigned int image_offset;
  16. unsigned int cipher_offset;
  17. unsigned int cipher_length;
  18. /*
  19. * v0 : legacy
  20. * v1 : standard operations
  21. */
  22. unsigned int aes_version;
  23. unsigned char dummy[68];
  24. } CIPHER_HEADER;
  25. #endif /*_CIPHERHEADER_H*/