aboutsummaryrefslogtreecommitdiff
path: root/lib/sec_library/include/csi_sec_img_verify.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sec_library/include/csi_sec_img_verify.h')
-rw-r--r--lib/sec_library/include/csi_sec_img_verify.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/sec_library/include/csi_sec_img_verify.h b/lib/sec_library/include/csi_sec_img_verify.h
new file mode 100644
index 00000000..24190684
--- /dev/null
+++ b/lib/sec_library/include/csi_sec_img_verify.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2019-2021 Alibaba Group Holding Limited
+ */
+#ifndef __CSI_SEC_IMG_VERIFY_H__
+#define __CSI_SEC_IMG_VERIFY_H__
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef enum {
+ BOOT_STAGE_BL1 = 0,
+ BOOT_STAGE_BL2,
+ BOOT_STAGE_ERR,
+} boot_stage_t;
+
+int csi_sec_custom_image_verify(unsigned long img_src_addr, unsigned long cur_hdr_addr);
+
+int csi_sec_uboot_image_verify(unsigned long img_src_addr, unsigned long cur_hdr_addr);
+
+int csi_sec_set_boot_stage(boot_stage_t boot_stage);
+
+int csi_sec_get_lib_version(char ** p_version);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CSI_SEC_IMG_VERIFY_H__ */