Home
last modified time | relevance | path

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

/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_md.function32 TEST_ASSERT( mbedtls_md_setup( &ctx, info, 0 ) == 0 );
57 TEST_ASSERT( mbedtls_md_setup( &ctx, NULL, 0 ) == MBEDTLS_ERR_MD_BAD_INPUT_DATA );
58 TEST_ASSERT( mbedtls_md_setup( NULL, info, 0 ) == MBEDTLS_ERR_MD_BAD_INPUT_DATA );
203 TEST_ASSERT ( 0 == mbedtls_md_setup( &ctx, md_info, 0 ) );
204 TEST_ASSERT ( 0 == mbedtls_md_setup( &ctx_copy, md_info, 0 ) );
250 TEST_ASSERT ( 0 == mbedtls_md_setup( &ctx, md_info, 0 ) );
251 TEST_ASSERT ( 0 == mbedtls_md_setup( &ctx_copy, md_info, 0 ) );
323 TEST_ASSERT ( 0 == mbedtls_md_setup( &ctx, md_info, 1 ) );
Dtest_suite_pkcs5.function23 TEST_ASSERT( mbedtls_md_setup( &ctx, info, 1 ) == 0 );
Dtest_suite_entropy.function481 TEST_ASSERT( mbedtls_md_setup( &accumulator, md_info, 0 ) == 0 );
Dtest_suite_ssl.function1274 CHK( mbedtls_md_setup( &t_out->md_ctx_enc, md_info, 1 ) == 0 );
1275 CHK( mbedtls_md_setup( &t_out->md_ctx_dec, md_info, 1 ) == 0 );
1276 CHK( mbedtls_md_setup( &t_in->md_ctx_enc, md_info, 1 ) == 0 );
1277 CHK( mbedtls_md_setup( &t_in->md_ctx_dec, md_info, 1 ) == 0 );
4458 TEST_EQUAL( 0, mbedtls_md_setup( &ctx, md_info, 1 ) );
4459 TEST_EQUAL( 0, mbedtls_md_setup( &ref_ctx, md_info, 1 ) );
/openthread-3.4.0/third_party/mbedtls/repo/library/
Dmd.c396 return mbedtls_md_setup( ctx, md_info, 1 ); in mbedtls_md_init_ctx()
409 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ) in mbedtls_md_setup() function
675 if( ( ret = mbedtls_md_setup( &ctx, md_info, 0 ) ) != 0 ) in mbedtls_md_file()
806 if( ( ret = mbedtls_md_setup( &ctx, md_info, 1 ) ) != 0 ) in mbedtls_md_hmac()
Dpkcs5.c190 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_pkcs5_pbes2()
379 if( ( ret = mbedtls_md_setup( &sha1_ctx, info_sha1, 1 ) ) != 0 ) in mbedtls_pkcs5_self_test()
Dhkdf.c128 if( ( ret = mbedtls_md_setup( &ctx, md, 1 ) ) != 0 ) in mbedtls_hkdf_expand()
Dhmac_drbg.c125 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf()
254 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed()
Dssl_cookie.c109 ret = mbedtls_md_setup( &ctx->hmac_ctx, mbedtls_md_info_from_type( COOKIE_MD ), 1 ); in mbedtls_ssl_cookie_setup()
Dpkcs12.c297 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_pkcs12_derivation()
Drsa.c1202 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1401 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt()
1661 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in rsa_rsassa_pss_sign()
2088 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsassa_pss_verify_ext()
Dconstant_time.c485 MD_CHK( mbedtls_md_setup( &aux, ctx->md_info, 0 ) ); in mbedtls_ct_hmac()
Dssl_tls.c444 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf()
498 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf()
720 if ( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls_prf_generic()
1128 if( ( ret = mbedtls_md_setup( &transform->md_ctx_enc, md_info, 1 ) ) != 0 || in ssl_populate_transform()
1129 ( ret = mbedtls_md_setup( &transform->md_ctx_dec, md_info, 1 ) ) != 0 ) in ssl_populate_transform()
7652 if( ( ret = mbedtls_md_setup( &ctx, md_info, 0 ) ) != 0 ) in mbedtls_ssl_get_key_exchange_md_tls1_2()
/openthread-3.4.0/third_party/mbedtls/repo/include/mbedtls/
Dmd.h215 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac );
/openthread-3.4.0/third_party/mbedtls/repo/programs/hash/
Dgeneric_sum.c216 if( mbedtls_md_setup( &md_ctx, md_info, 0 ) ) in main()
/openthread-3.4.0/third_party/mbedtls/repo/programs/aes/
Dcrypt_and_hash.c200 if( mbedtls_md_setup( &md_ctx, md_info, 1 ) != 0 ) in main()
/openthread-3.4.0/src/core/crypto/
Dcrypto_platform.cpp165 VerifyOrExit((mbedtls_md_setup(context, mdInfo, 1) == 0), error = kErrorFailed); in otPlatCryptoHmacSha256Init()
/openthread-3.4.0/third_party/mbedtls/repo/
DChangeLog688 * Fix a memory leak in mbedtls_md_setup() when using HMAC under low memory