[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/include/libkey.h b/ap/app/include/libkey.h
new file mode 100644
index 0000000..2f5c5c4
--- /dev/null
+++ b/ap/app/include/libkey.h
@@ -0,0 +1,31 @@
+#ifndef __LIBKEY_H
+#define __LIBKEY_H
+
+//ÖÖ×Ó¶¨Ò壬ÖÖ×Ó³¤¶È±ØÐëµÈÓÚ8£¬¿Í»§¿ÉÒÔÐÞ¸Ä
+#define SEED "ZXIC-TSP"
+
+
+/**
+ * @brief Óû§Ä£Ê½ÇÐÑз¢Ä£Ê½¼øÈ¨
+ * @param device_key ÐèÒªÑéÖ¤µÄkey
+ * @param key_len key³¤¶È
+ * @param seed ¼øÈ¨Ê¹ÓõÄÖÖ×Ó
+ * @param seed_len ¼øÈ¨Ê¹ÓõÄÖÖ×Ó³¤¶È
+ * @return 1 ³É¹¦
+ * @return ÆäËûÖµ ʧ°Ü
+ * @note
+ * @warning
+ */
+int verify_device_key(char *device_key,int key_len,char *seed,int seed_len);
+
+/**
+ * @brief Óû§Ä£Ê½ÇÐÑз¢Ä£Ê½Ä¬ÈÏ״̬
+ * @param ÎÞ
+ * @return 1 ÎÞÐèÑéÖ¤
+ * @return 0 ÐèÒªÑéÖ¤
+ * @note
+ * @warning
+ */
+int auth_device_key_init_value(void);
+
+#endif // __LIBKEY_H