/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_md.function | 35 TEST_EQUAL(0, mbedtls_md_setup(&ctx, info, 0)); 108 TEST_EQUAL(mbedtls_md_setup(&ctx, NULL, 0), MBEDTLS_ERR_MD_BAD_INPUT_DATA); 110 TEST_EQUAL(mbedtls_md_setup(NULL, info, 0), MBEDTLS_ERR_MD_BAD_INPUT_DATA); 258 TEST_EQUAL(0, mbedtls_md_setup(&ctx, md_info, 0)); 259 TEST_EQUAL(0, mbedtls_md_setup(&ctx_copy, md_info, 0)); 303 TEST_EQUAL(0, mbedtls_md_setup(&ctx, md_info, 0)); 304 TEST_EQUAL(0, mbedtls_md_setup(&ctx_copy, md_info, 0)); 374 TEST_EQUAL(0, mbedtls_md_setup(&ctx, md_info, 1)); 440 TEST_EQUAL(pre_psa_ret, mbedtls_md_setup(&ctx1, md_info, 0)); 441 TEST_EQUAL(pre_psa_ret, mbedtls_md_setup(&ctx2, md_info, 0)); [all …]
|
D | test_suite_constant_time_hmac.function | 72 TEST_EQUAL(0, mbedtls_md_setup(&ctx, md_info, 1)); 73 TEST_EQUAL(0, mbedtls_md_setup(&ref_ctx, md_info, 1));
|
D | test_suite_entropy.function | 505 TEST_ASSERT(mbedtls_md_setup(&accumulator, md_info, 0) == 0);
|
/openthread-3.7.0/third_party/mbedtls/repo/programs/hash/ |
D | md_hmac_demo.c | 103 CHK(mbedtls_md_setup(&ctx, info, 1)); in hmac_demo()
|
D | generic_sum.c | 185 if (mbedtls_md_setup(&md_ctx, md_info, 0)) { in main()
|
/openthread-3.7.0/third_party/mbedtls/repo/library/ |
D | hkdf.c | 107 if ((ret = mbedtls_md_setup(&ctx, md, 1)) != 0) { in mbedtls_hkdf_expand()
|
D | hmac_drbg.c | 103 if ((ret = mbedtls_md_setup(&ctx->md_ctx, md_info, 1)) != 0) { in mbedtls_hmac_drbg_seed_buf() 232 if ((ret = mbedtls_md_setup(&ctx->md_ctx, md_info, 1)) != 0) { in mbedtls_hmac_drbg_seed()
|
D | md.c | 418 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac) in mbedtls_md_setup() function 940 if ((ret = mbedtls_md_setup(&ctx, md_info, 0)) != 0) { in mbedtls_md_file() 1086 if ((ret = mbedtls_md_setup(&ctx, md_info, 1)) != 0) { in mbedtls_md_hmac()
|
D | entropy.c | 147 ret = mbedtls_md_setup(&ctx->accumulator, in entropy_update() 336 ret = mbedtls_md_setup(&ctx->accumulator, in mbedtls_entropy_func()
|
D | ssl_cookie.c | 138 ret = mbedtls_md_setup(&ctx->hmac_ctx, mbedtls_md_info_from_type(COOKIE_MD), 1); in mbedtls_ssl_cookie_setup()
|
D | pkcs12.c | 284 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in calculate_hashes()
|
D | pkcs5.c | 386 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 1)) != 0) { in mbedtls_pkcs5_pbkdf2_hmac_ext()
|
D | pem.c | 89 if ((ret = mbedtls_md_setup(&md5_ctx, md5_info, 0)) != 0) { in pem_pbkdf1()
|
D | ssl_tls.c | 856 ret = mbedtls_md_setup(&ssl->handshake->fin_sha256, in mbedtls_ssl_reset_checksum() 881 ret = mbedtls_md_setup(&ssl->handshake->fin_sha384, in mbedtls_ssl_reset_checksum() 6476 ret = mbedtls_md_setup(&sha384, mbedtls_md_info_from_type(MBEDTLS_MD_SHA384), 0); in ssl_get_handshake_transcript_sha384() 6514 ret = mbedtls_md_setup(&sha256, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 0); in ssl_get_handshake_transcript_sha256() 6864 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 1)) != 0) { in tls_prf_generic() 7332 ret = mbedtls_md_setup(&cloned_ctx, mbedtls_md_info_from_ctx(hs_ctx), 0); in ssl_calc_verify_tls_legacy() 8366 ret = mbedtls_md_setup(&cloned_ctx, mbedtls_md_info_from_ctx(hs_ctx), 0); in ssl_calc_finished_tls_generic() 8997 if ((ret = mbedtls_md_setup(&transform->md_ctx_enc, md_info, 1)) != 0 || in ssl_tls12_populate_transform() 8998 (ret = mbedtls_md_setup(&transform->md_ctx_dec, md_info, 1)) != 0) { in ssl_tls12_populate_transform() 9404 if ((ret = mbedtls_md_setup(&ctx, md_info, 0)) != 0) { in mbedtls_ssl_get_key_exchange_md_tls1_2()
|
D | rsa.c | 1636 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in mgf_mask() 1708 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in hash_mprime()
|
D | ssl_msg.c | 230 MD_CHK(mbedtls_md_setup(&aux, ctx->md_info, 0)); in mbedtls_ct_hmac()
|
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/ |
D | md.h | 197 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac);
|
/openthread-3.7.0/third_party/mbedtls/repo/programs/aes/ |
D | crypt_and_hash.c | 170 if (mbedtls_md_setup(&md_ctx, md_info, 1) != 0) { in main()
|
/openthread-3.7.0/third_party/mbedtls/repo/tests/src/test_helpers/ |
D | ssl_helpers.c | 1403 CHK(mbedtls_md_setup(&t_out->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms() 1404 CHK(mbedtls_md_setup(&t_out->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms() 1405 CHK(mbedtls_md_setup(&t_in->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms() 1406 CHK(mbedtls_md_setup(&t_in->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
|
/openthread-3.7.0/src/core/crypto/ |
D | crypto_platform.cpp | 165 VerifyOrExit((mbedtls_md_setup(context, mdInfo, 1) == 0), error = kErrorFailed); in otPlatCryptoHmacSha256Init()
|
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/psa-migration/ |
D | strategy.md | 409 of `psa_hash_operation_t` and `psa_mac_operation_t`, then `mbedtls_md_setup()`
|
D | md-cipher-dispatch.md | 408 * `mbedtls_md_setup` — but `hmac` must be 0 if `MBEDTLS_MD_C` is disabled.
|
/openthread-3.7.0/third_party/mbedtls/repo/docs/ |
D | 3.0-migration-guide.md | 193 `mbedtls_md_setup()` instead.
|
D | psa-transition.md | 509 2. Call `mbedtls_md_setup` to select the hash algorithm, with `hmac=0`. Then call `mbedtls_md_start… 552 2. Call `mbedtls_md_setup` to select the hash algorithm, with `hmac=1`. Then call `mbedtls_md_hmac_…
|
/openthread-3.7.0/third_party/mbedtls/repo/ |
D | ChangeLog | 2283 * Fix a memory leak in mbedtls_md_setup() when using HMAC under low memory
|