lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef __LIBKEY_H
|
| 2 | #define __LIBKEY_H
|
| 3 |
|
| 4 | //ÖÖ×Ó¶¨Ò壬ÖÖ×Ó³¤¶È±ØÐëµÈÓÚ8£¬¿Í»§¿ÉÒÔÐÞ¸Ä
|
| 5 | #define SEED "ZXIC-TSP"
|
| 6 |
|
| 7 |
|
| 8 | /**
|
| 9 | * @brief Óû§Ä£Ê½ÇÐÑз¢Ä£Ê½¼øÈ¨
|
| 10 | * @param device_key ÐèÒªÑéÖ¤µÄkey
|
| 11 | * @param key_len key³¤¶È
|
| 12 | * @param seed ¼øÈ¨Ê¹ÓõÄÖÖ×Ó
|
| 13 | * @param seed_len ¼øÈ¨Ê¹ÓõÄÖÖ×Ó³¤¶È
|
| 14 | * @return 1 ³É¹¦
|
| 15 | * @return ÆäËûÖµ ʧ°Ü
|
| 16 | * @note
|
| 17 | * @warning
|
| 18 | */
|
| 19 | int verify_device_key(char *device_key,int key_len,char *seed,int seed_len);
|
| 20 |
|
| 21 | /**
|
| 22 | * @brief Óû§Ä£Ê½ÇÐÑз¢Ä£Ê½Ä¬ÈÏ״̬
|
| 23 | * @param ÎÞ
|
| 24 | * @return 1 ÎÞÐèÑéÖ¤
|
| 25 | * @return 0 ÐèÒªÑéÖ¤
|
| 26 | * @note
|
| 27 | * @warning
|
| 28 | */
|
| 29 | int auth_device_key_init_value(void);
|
| 30 |
|
| 31 | #endif // __LIBKEY_H
|