Home
last modified time | relevance | path

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

/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_md.function35 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 …]
Dtest_suite_constant_time_hmac.function72 TEST_EQUAL(0, mbedtls_md_setup(&ctx, md_info, 1));
73 TEST_EQUAL(0, mbedtls_md_setup(&ref_ctx, md_info, 1));
Dtest_suite_entropy.function505 TEST_ASSERT(mbedtls_md_setup(&accumulator, md_info, 0) == 0);
/openthread-3.7.0/third_party/mbedtls/repo/programs/hash/
Dmd_hmac_demo.c103 CHK(mbedtls_md_setup(&ctx, info, 1)); in hmac_demo()
Dgeneric_sum.c185 if (mbedtls_md_setup(&md_ctx, md_info, 0)) { in main()
/openthread-3.7.0/third_party/mbedtls/repo/library/
Dhkdf.c107 if ((ret = mbedtls_md_setup(&ctx, md, 1)) != 0) { in mbedtls_hkdf_expand()
Dhmac_drbg.c103 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()
Dmd.c418 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()
Dentropy.c147 ret = mbedtls_md_setup(&ctx->accumulator, in entropy_update()
336 ret = mbedtls_md_setup(&ctx->accumulator, in mbedtls_entropy_func()
Dssl_cookie.c138 ret = mbedtls_md_setup(&ctx->hmac_ctx, mbedtls_md_info_from_type(COOKIE_MD), 1); in mbedtls_ssl_cookie_setup()
Dpkcs12.c284 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in calculate_hashes()
Dpkcs5.c386 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 1)) != 0) { in mbedtls_pkcs5_pbkdf2_hmac_ext()
Dpem.c89 if ((ret = mbedtls_md_setup(&md5_ctx, md5_info, 0)) != 0) { in pem_pbkdf1()
Dssl_tls.c856 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()
Drsa.c1636 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()
Dssl_msg.c230 MD_CHK(mbedtls_md_setup(&aux, ctx->md_info, 0)); in mbedtls_ct_hmac()
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dmd.h197 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/
Dcrypt_and_hash.c170 if (mbedtls_md_setup(&md_ctx, md_info, 1) != 0) { in main()
/openthread-3.7.0/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c1403 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/
Dcrypto_platform.cpp165 VerifyOrExit((mbedtls_md_setup(context, mdInfo, 1) == 0), error = kErrorFailed); in otPlatCryptoHmacSha256Init()
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/psa-migration/
Dstrategy.md409 of `psa_hash_operation_t` and `psa_mac_operation_t`, then `mbedtls_md_setup()`
Dmd-cipher-dispatch.md408 * `mbedtls_md_setup` — but `hmac` must be 0 if `MBEDTLS_MD_C` is disabled.
/openthread-3.7.0/third_party/mbedtls/repo/docs/
D3.0-migration-guide.md193 `mbedtls_md_setup()` instead.
Dpsa-transition.md509 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/
DChangeLog2283 * Fix a memory leak in mbedtls_md_setup() when using HMAC under low memory