Home
last modified time | relevance | path

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

/AliOS-Things-master/components/oss/src/auth/
A DHmacSha1Signer.cc99 mbedtls_sha1_context sha1_ctx; in generate() local
101 mbedtls_sha1_init(&sha1_ctx); in generate()
102 mbedtls_sha1_starts(&sha1_ctx); in generate()
103 …mbedtls_sha1_update(&sha1_ctx, reinterpret_cast<const unsigned char*>(secret.c_str()), secret.size… in generate()
104 mbedtls_sha1_update(&sha1_ctx, reinterpret_cast<const unsigned char*>(src.c_str()), src.size()); in generate()
105 mbedtls_sha1_finish(&sha1_ctx, md); in generate()
106 mbedtls_sha1_free(&sha1_ctx); in generate()
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dmppe.c63 lwip_sha1_context sha1_ctx; in mppe_rekey() local
70 lwip_sha1_init(&sha1_ctx); in mppe_rekey()
71 lwip_sha1_starts(&sha1_ctx); in mppe_rekey()
72 lwip_sha1_update(&sha1_ctx, state->master_key, state->keylen); in mppe_rekey()
73 lwip_sha1_update(&sha1_ctx, mppe_sha1_pad1, SHA1_PAD_SIZE); in mppe_rekey()
74 lwip_sha1_update(&sha1_ctx, state->session_key, state->keylen); in mppe_rekey()
75 lwip_sha1_update(&sha1_ctx, mppe_sha1_pad2, SHA1_PAD_SIZE); in mppe_rekey()
76 lwip_sha1_finish(&sha1_ctx, sha1_digest); in mppe_rekey()
77 lwip_sha1_free(&sha1_ctx); in mppe_rekey()
/AliOS-Things-master/components/mbedtls/library/
A Dpkcs5.c358 mbedtls_md_context_t sha1_ctx; in mbedtls_pkcs5_self_test() local
363 mbedtls_md_init( &sha1_ctx ); in mbedtls_pkcs5_self_test()
372 if( ( ret = mbedtls_md_setup( &sha1_ctx, info_sha1, 1 ) ) != 0 ) in mbedtls_pkcs5_self_test()
383 ret = mbedtls_pkcs5_pbkdf2_hmac( &sha1_ctx, password[i], plen[i], salt[i], in mbedtls_pkcs5_self_test()
403 mbedtls_md_free( &sha1_ctx ); in mbedtls_pkcs5_self_test()

Completed in 5 milliseconds