Home
last modified time | relevance | path

Searched refs:hash (Results 1 - 4 of 4) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Diot_hmac.c17 * This file make use the hmac to make mqtt pwd.The method is use the date string to hash the device passwd .
53 unsigned char hash[CN_HMAC256_LEN]; in HmacGeneratePwd() local
73 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
75 // transfer the hash code to the string mode in HmacGeneratePwd()
76 Byte2hexstr(hash, CN_HMAC256_LEN, (char *)buf); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/iottencent_demo/
H A Diot_hmac.c18 * The method is use the date string to hash the device passwd
64 unsigned char hash[CN_HMAC256_LEN]; in HmacGeneratePwd() local
86 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
88 // <transfer the hash code to the string mode in HmacGeneratePwd()
89 ret = byte2hexstr(hash, CN_HMAC256_LEN, (char *)buf); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/mqtt_demo/
H A Diot_hmac.c18 * The method is use the date string to hash the device passwd
64 unsigned char hash[CN_HMAC256_LEN]; in HmacGeneratePwd() local
86 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
88 // <transfer the hash code to the string mode in HmacGeneratePwd()
89 ret = byte2hexstr(hash, CN_HMAC256_LEN, (char *)buf); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/
H A Diot_hmac.c17 * This file make use the hmac to make mqtt pwd.The method is use the date string to hash the device passwd .
67 unsigned char hash[CN_HMAC256_LEN]; in HmacGeneratePwd() local
87 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
89 // transfer the hash code to the string mode in HmacGeneratePwd()
90 Byte2HexStr(hash, CN_HMAC256_LEN, (char *)buf); in HmacGeneratePwd()

Completed in 2 milliseconds