資源簡介
C語言,hamcsha1算法的實現,阿里云3元素數組 通過hamcsha1加簽名算法后連接物理網平臺的實現
【實例說明】
主要執行文件 iotkit
主函數為 iotkit()
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?“iotkit.h“
#define?_IN_?unsigned
#define?_OU_?unsigned
const?uint8_t?*domain_mqtt_direct?=?“iot-as-mqtt.cn-shanghai.aliyuncs.com“;??///*?Shanghai?*/
extern?int?HAL_Snprintf(char?*str?const?int?len?const?char?*fmt?...);
unsigned?char?_product_key[PRODUCT_KEY_LEN?+?1];
unsigned?char?_product_secret[PRODUCT_SECRET_LEN?+?1];
unsigned?char?_device_name[DEVICE_NAME_LEN?+?1];
unsigned?char?_device_secret[DEVICE_SECRET_LEN?+?1];
int?HAL_SetProductKey(_IN_?char?*product_key);
int?HAL_SetDeviceName(_IN_?char?*device_name);
int?HAL_SetDeviceSecret(_IN_?char?*device_secret);
int?HAL_SetProductSecret(_IN_?char?*product_secret);
int?HAL_GetProductKey(_OU_?char?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3981??2018-12-21?17:13??Alios-hmacsha1\Device.c
?????文件???????9060??2018-12-21?17:54??Alios-hmacsha1\hmac.c
?????文件???????1330??2018-12-20?17:37??Alios-hmacsha1\hmac.h
?????文件???????3717??2018-12-21?17:54??Alios-hmacsha1\iotkit.c
?????文件???????1881??2018-12-21?17:46??Alios-hmacsha1\iotkit.h
?????文件?????????40??2018-12-21?18:06??Alios-hmacsha1\說明.txt
?????目錄??????????0??2018-12-21?17:57??Alios-hmacsha1
-----------?---------??----------?-----??----
????????????????20009????????????????????7
- 上一篇:把十進制轉化為八進制、十六進制、二進制
- 下一篇:10進制與16進制互轉
評論
共有 條評論