csi_sec_img_verify.h 627 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2019-2020 Alibaba Group Holding Limited
  3. */
  4. #ifndef __CSI_SEC_IMG_VERIFY_H__
  5. #define __CSI_SEC_IMG_VERIFY_H__
  6. #include <stdint.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef enum {
  11. BOOT_STAGE_BL1 = 0,
  12. BOOT_STAGE_BL2,
  13. BOOT_STAGE_ERR,
  14. } boot_stage_t;
  15. int csi_sec_custom_image_verify(unsigned long img_src_addr, unsigned long cur_hdr_addr);
  16. int csi_sec_uboot_image_verify(unsigned long img_src_addr, unsigned long cur_hdr_addr);
  17. int csi_sec_set_boot_stage(boot_stage_t boot_stage);
  18. int csi_sec_get_lib_version(char ** p_version);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* __CSI_SEC_IMG_VERIFY_H__ */