Home
last modified time | relevance | path

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

12

/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/hash/
H A Dmd_hmac_demo.c107 CHK(mbedtls_md_hmac_update(&ctx, msg1_part1, sizeof(msg1_part1))); in hmac_demo()
108 CHK(mbedtls_md_hmac_update(&ctx, msg1_part2, sizeof(msg1_part2))); in hmac_demo()
114 CHK(mbedtls_md_hmac_update(&ctx, msg2_part1, sizeof(msg2_part1))); in hmac_demo()
115 CHK(mbedtls_md_hmac_update(&ctx, msg2_part2, sizeof(msg2_part2))); in hmac_demo()
/aosp_15_r20/external/mbedtls/programs/hash/
H A Dmd_hmac_demo.c107 CHK(mbedtls_md_hmac_update(&ctx, msg1_part1, sizeof(msg1_part1))); in hmac_demo()
108 CHK(mbedtls_md_hmac_update(&ctx, msg1_part2, sizeof(msg1_part2))); in hmac_demo()
114 CHK(mbedtls_md_hmac_update(&ctx, msg2_part1, sizeof(msg2_part1))); in hmac_demo()
115 CHK(mbedtls_md_hmac_update(&ctx, msg2_part2, sizeof(msg2_part2))); in hmac_demo()
/aosp_15_r20/external/mbedtls/library/
H A Dhmac_drbg.c58 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
62 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
67 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
80 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
352 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_random_with_add()
H A Dhkdf.c126 ret = mbedtls_md_hmac_update(&ctx, t, t_len); in mbedtls_hkdf_expand()
131 ret = mbedtls_md_hmac_update(&ctx, info, info_len); in mbedtls_hkdf_expand()
138 ret = mbedtls_md_hmac_update(&ctx, &c, 1); in mbedtls_hkdf_expand()
H A Dpkcs5.c294 if ((ret = mbedtls_md_hmac_update(ctx, salt, slen)) != 0) { in pkcs5_pbkdf2_hmac()
298 if ((ret = mbedtls_md_hmac_update(ctx, counter, 4)) != 0) { in pkcs5_pbkdf2_hmac()
315 if ((ret = mbedtls_md_hmac_update(ctx, md1, md_size)) != 0) { in pkcs5_pbkdf2_hmac()
H A Dssl_cookie.c169 mbedtls_md_hmac_update(hmac_ctx, time, 4) != 0 || in ssl_cookie_hmac()
170 mbedtls_md_hmac_update(hmac_ctx, cli_id, cli_id_len) != 0 || in ssl_cookie_hmac()
H A Dmd.c1017 int mbedtls_md_hmac_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_hmac_update() function
1093 if ((ret = mbedtls_md_hmac_update(&ctx, input, ilen)) != 0) { in mbedtls_md_hmac()
H A Dssl_msg.c1078 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, add_data, in mbedtls_ssl_encrypt_buf()
1083 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, data, rec->data_len); in mbedtls_ssl_encrypt_buf()
1424 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, add_data, in mbedtls_ssl_encrypt_buf()
1429 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, in mbedtls_ssl_encrypt_buf()
1775 ret = mbedtls_md_hmac_update(&transform->md_ctx_dec, add_data, in mbedtls_ssl_decrypt_buf()
1780 ret = mbedtls_md_hmac_update(&transform->md_ctx_dec, in mbedtls_ssl_decrypt_buf()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/
H A Dhmac_drbg.c58 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
62 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
67 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
80 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_update()
352 if ((ret = mbedtls_md_hmac_update(&ctx->md_ctx, in mbedtls_hmac_drbg_random_with_add()
H A Dhkdf.c126 ret = mbedtls_md_hmac_update(&ctx, t, t_len); in mbedtls_hkdf_expand()
131 ret = mbedtls_md_hmac_update(&ctx, info, info_len); in mbedtls_hkdf_expand()
138 ret = mbedtls_md_hmac_update(&ctx, &c, 1); in mbedtls_hkdf_expand()
H A Dpkcs5.c298 if ((ret = mbedtls_md_hmac_update(ctx, salt, slen)) != 0) { in pkcs5_pbkdf2_hmac()
302 if ((ret = mbedtls_md_hmac_update(ctx, counter, 4)) != 0) { in pkcs5_pbkdf2_hmac()
319 if ((ret = mbedtls_md_hmac_update(ctx, md1, md_size)) != 0) { in pkcs5_pbkdf2_hmac()
H A Dssl_cookie.c169 mbedtls_md_hmac_update(hmac_ctx, time, 4) != 0 || in ssl_cookie_hmac()
170 mbedtls_md_hmac_update(hmac_ctx, cli_id, cli_id_len) != 0 || in ssl_cookie_hmac()
H A Dmd.c1017 int mbedtls_md_hmac_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_hmac_update() function
1093 if ((ret = mbedtls_md_hmac_update(&ctx, input, ilen)) != 0) { in mbedtls_md_hmac()
H A Dssl_msg.c1076 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, add_data, in mbedtls_ssl_encrypt_buf()
1081 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, data, rec->data_len); in mbedtls_ssl_encrypt_buf()
1420 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, add_data, in mbedtls_ssl_encrypt_buf()
1425 ret = mbedtls_md_hmac_update(&transform->md_ctx_enc, in mbedtls_ssl_encrypt_buf()
1770 ret = mbedtls_md_hmac_update(&transform->md_ctx_dec, add_data, in mbedtls_ssl_decrypt_buf()
1775 ret = mbedtls_md_hmac_update(&transform->md_ctx_dec, in mbedtls_ssl_decrypt_buf()
/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_md.function134 TEST_EQUAL(mbedtls_md_hmac_update(NULL, buf, 1),
136 TEST_EQUAL(mbedtls_md_hmac_update(&ctx, buf, 1),
383 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x, halfway));
384 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x + halfway, src_str->len - halfway));
393 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x, halfway));
394 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x + halfway, src_str->len - halfway));
H A Dtest_suite_constant_time_hmac.function129 TEST_EQUAL(0, mbedtls_md_hmac_update(&ref_ctx, add_data,
131 TEST_EQUAL(0, mbedtls_md_hmac_update(&ref_ctx, data, in_len));
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_md.function134 TEST_EQUAL(mbedtls_md_hmac_update(NULL, buf, 1),
136 TEST_EQUAL(mbedtls_md_hmac_update(&ctx, buf, 1),
383 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x, halfway));
384 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x + halfway, src_str->len - halfway));
393 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x, halfway));
394 TEST_EQUAL(0, mbedtls_md_hmac_update(&ctx, src_str->x + halfway, src_str->len - halfway));
H A Dtest_suite_constant_time_hmac.function130 TEST_EQUAL(0, mbedtls_md_hmac_update(&ref_ctx, add_data,
132 TEST_EQUAL(0, mbedtls_md_hmac_update(&ref_ctx, data, in_len));
/aosp_15_r20/external/mbedtls/programs/aes/
H A Dcrypt_and_hash.c340 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
355 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
490 if (mbedtls_md_hmac_update(&md_ctx, buffer, ilen) != 0) { in main()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/aes/
H A Dcrypt_and_hash.c344 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
359 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
494 if (mbedtls_md_hmac_update(&md_ctx, buffer, ilen) != 0) { in main()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/include/mbedtls/
H A Dmd.h453 int mbedtls_md_hmac_update(mbedtls_md_context_t *ctx, const unsigned char *input,
/aosp_15_r20/external/mbedtls/include/mbedtls/
H A Dmd.h567 int mbedtls_md_hmac_update(mbedtls_md_context_t *ctx, const unsigned char *input,
/aosp_15_r20/external/libwebsockets/lib/tls/mbedtls/
H A Dlws-genhash.c302 if (mbedtls_md_hmac_update(&ctx->ctx, in, len)) in lws_genhmac_update()
/aosp_15_r20/external/mbedtls/tests/src/test_helpers/
H A Dssl_helpers.c1493 TEST_EQUAL(0, mbedtls_md_hmac_update(&transform_out->md_ctx_enc, add_data, 13)); in mbedtls_test_ssl_prepare_record_mac()
1494 TEST_EQUAL(0, mbedtls_md_hmac_update(&transform_out->md_ctx_enc, in mbedtls_test_ssl_prepare_record_mac()
/aosp_15_r20/external/openthread/src/core/crypto/
H A Dcrypto_platform.cpp211 …VerifyOrExit((mbedtls_md_hmac_update(context, reinterpret_cast<const uint8_t *>(aBuf), aBufLength)… in otPlatCryptoHmacSha256Update()

12