Home
last modified time | relevance | path

Searched refs:static_str (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/components/genie_service/core/src/
A Dgenie_crypto.c31 char static_str[88] = ""; // pid + ',' + mac + ',' + secret = 8+1+12+1+32+1+32'\0' in genie_crypto_get_auth() local
40 sprintf(static_str, "%08x,%s,%s", p_genie_triple->pid, mac_str, key_str); in genie_crypto_get_auth()
42 sprintf(static_str, "%08x,%s,%s,%s", p_genie_triple->pid, mac_str, key_str, rad_str); in genie_crypto_get_auth()
44 BT_DBG("static oob: %s", static_str); in genie_crypto_get_auth()
55 ret = tc_sha256_update(&sha256_ctx, (const uint8_t *)static_str, strlen(static_str)); in genie_crypto_get_auth()
112 … char static_str[72] = ""; // random + ',' + pid + ',' + mac + ',' + secret = 16+1+8+1+12+1+32'\0' in genie_ais_get_cipher() local
118 memcpy(static_str, random, 16); in genie_ais_get_cipher()
119 sprintf(static_str + 16, ",%08x,%s,%s", p_genie_triple->pid, mac_str, key_str); in genie_ais_get_cipher()
121 BT_DBG("string: %s", static_str); in genie_ais_get_cipher()
132 ret = tc_sha256_update(&sha256_ctx, (const uint8_t *)static_str, strlen(static_str)); in genie_ais_get_cipher()

Completed in 3 milliseconds