Home
last modified time | relevance | path

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

/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Diot_hmac.c51 mbedtls_md_context_t mbedtls_md_ctx; in HmacGeneratePwd() local
64 mbedtls_md_init(&mbedtls_md_ctx); in HmacGeneratePwd()
65 ret = mbedtls_md_setup(&mbedtls_md_ctx, mdInfo, 1); in HmacGeneratePwd()
67 mbedtls_md_free(&mbedtls_md_ctx); in HmacGeneratePwd()
71 (void)mbedtls_md_hmac_starts(&mbedtls_md_ctx, key, keyLen); in HmacGeneratePwd()
72 (void)mbedtls_md_hmac_update(&mbedtls_md_ctx, content, contentLen); in HmacGeneratePwd()
73 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/iottencent_demo/
H A Diot_hmac.c62 mbedtls_md_context_t mbedtls_md_ctx; in HmacGeneratePwd() local
77 mbedtls_md_init(&mbedtls_md_ctx); in HmacGeneratePwd()
78 ret = mbedtls_md_setup(&mbedtls_md_ctx, md_info, 1); in HmacGeneratePwd()
80 mbedtls_md_free(&mbedtls_md_ctx); in HmacGeneratePwd()
84 (void)mbedtls_md_hmac_starts(&mbedtls_md_ctx, key, keyLen); in HmacGeneratePwd()
85 (void)mbedtls_md_hmac_update(&mbedtls_md_ctx, content, contentLen); in HmacGeneratePwd()
86 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/mqtt_demo/
H A Diot_hmac.c62 mbedtls_md_context_t mbedtls_md_ctx; in HmacGeneratePwd() local
77 mbedtls_md_init(&mbedtls_md_ctx); in HmacGeneratePwd()
78 ret = mbedtls_md_setup(&mbedtls_md_ctx, md_info, 1); in HmacGeneratePwd()
80 mbedtls_md_free(&mbedtls_md_ctx); in HmacGeneratePwd()
84 (void)mbedtls_md_hmac_starts(&mbedtls_md_ctx, key, keyLen); in HmacGeneratePwd()
85 (void)mbedtls_md_hmac_update(&mbedtls_md_ctx, content, contentLen); in HmacGeneratePwd()
86 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/
H A Diot_hmac.c65 mbedtls_md_context_t mbedtls_md_ctx; in HmacGeneratePwd() local
78 mbedtls_md_init(&mbedtls_md_ctx); in HmacGeneratePwd()
79 ret = mbedtls_md_setup(&mbedtls_md_ctx, mdInfo, 1); in HmacGeneratePwd()
81 mbedtls_md_free(&mbedtls_md_ctx); in HmacGeneratePwd()
85 (void)mbedtls_md_hmac_starts(&mbedtls_md_ctx, key, keyLen); in HmacGeneratePwd()
86 (void)mbedtls_md_hmac_update(&mbedtls_md_ctx, content, contentLen); in HmacGeneratePwd()
87 (void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hash); in HmacGeneratePwd()

Completed in 1 milliseconds