#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 |