Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 14 of 14) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/tests/src/drivers/
Dhash.c25 uint8_t *hash, size_t hash_size, size_t *hash_length) in mbedtls_test_transparent_hash_compute() argument
38 hash, hash_size, hash_length); in mbedtls_test_transparent_hash_compute()
43 hash, hash_size, hash_length); in mbedtls_test_transparent_hash_compute()
49 (void) hash_size; in mbedtls_test_transparent_hash_compute()
146 size_t hash_size, in mbedtls_test_transparent_hash_finish() argument
159 operation, hash, hash_size, hash_length); in mbedtls_test_transparent_hash_finish()
162 mbedtls_psa_hash_finish(operation, hash, hash_size, hash_length); in mbedtls_test_transparent_hash_finish()
166 (void) hash_size; in mbedtls_test_transparent_hash_finish()
/openthread-latest/third_party/mbedtls/repo/library/
Dpsa_crypto_hash.c343 size_t hash_size, in mbedtls_psa_hash_finish() argument
353 *hash_length = hash_size; in mbedtls_psa_hash_finish()
356 if (hash_size != 0) { in mbedtls_psa_hash_finish()
357 memset(hash, '!', hash_size); in mbedtls_psa_hash_finish()
360 if (hash_size < actual_hash_length) { in mbedtls_psa_hash_finish()
417 ret = mbedtls_sha3_finish(&operation->ctx.sha3, hash, hash_size); in mbedtls_psa_hash_finish()
438 size_t hash_size, in mbedtls_psa_hash_compute() argument
445 *hash_length = hash_size; in mbedtls_psa_hash_compute()
454 status = mbedtls_psa_hash_finish(&operation, hash, hash_size, hash_length); in mbedtls_psa_hash_compute()
Dpsa_crypto_mac.c39 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_hmac_setup_internal() local
57 if (block_size < hash_size) { in psa_hmac_setup_internal()
118 size_t hash_size = 0; in psa_hmac_finish_internal() local
122 status = psa_hash_finish(&hmac->hash_ctx, tmp, sizeof(tmp), &hash_size); in psa_hmac_finish_internal()
138 status = psa_hash_update(&hmac->hash_ctx, tmp, hash_size); in psa_hmac_finish_internal()
143 status = psa_hash_finish(&hmac->hash_ctx, tmp, sizeof(tmp), &hash_size); in psa_hmac_finish_internal()
151 mbedtls_platform_zeroize(tmp, hash_size); in psa_hmac_finish_internal()
Dpsa_crypto_hash.h45 size_t hash_size,
181 size_t hash_size,
Dpsa_crypto_driver_wrappers.h1553 size_t hash_size, in psa_driver_wrapper_hash_compute() argument
1561 alg, input, input_length, hash, hash_size, hash_length ); in psa_driver_wrapper_hash_compute()
1569 hash, hash_size, hash_length ); in psa_driver_wrapper_hash_compute()
1578 (void) hash_size; in psa_driver_wrapper_hash_compute()
1670 size_t hash_size, in psa_driver_wrapper_hash_finish() argument
1678 hash, hash_size, hash_length ) ); in psa_driver_wrapper_hash_finish()
1684 hash, hash_size, hash_length ) ); in psa_driver_wrapper_hash_finish()
1688 (void) hash_size; in psa_driver_wrapper_hash_finish()
Dpsa_crypto.c2354 size_t hash_size, in psa_hash_finish_internal() argument
2365 operation, hash, hash_size, hash_length); in psa_hash_finish_internal()
2373 size_t hash_size, in psa_hash_finish() argument
2379 LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash); in psa_hash_finish()
2380 status = psa_hash_finish_internal(operation, hash, hash_size, hash_length); in psa_hash_finish()
2428 uint8_t *hash_external, size_t hash_size, in psa_hash_compute() argument
2441 LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash); in psa_hash_compute()
2443 hash, hash_size, hash_length); in psa_hash_compute()
6576 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_set_maximum_capacity() local
6577 if (hash_size == 0) { in psa_key_derivation_set_maximum_capacity()
[all …]
Dssl_msg.c92 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac() local
137 memset(output, '!', hash_size); in mbedtls_ct_hmac()
146 output, aux_out, NULL, hash_size); in mbedtls_ct_hmac()
167 PSA_CHK(psa_hash_update(&operation, output, hash_size)); in mbedtls_ct_hmac()
168 PSA_CHK(psa_hash_finish(&operation, output, hash_size, &hash_length)); in mbedtls_ct_hmac()
214 const size_t hash_size = mbedtls_md_get_size(ctx->md_info); in mbedtls_ct_hmac() local
241 memset(output, '!', hash_size); in mbedtls_ct_hmac()
249 output, aux_out, NULL, hash_size); in mbedtls_ct_hmac()
262 MD_CHK(mbedtls_md_update(ctx, output, hash_size)); in mbedtls_ct_hmac()
Dssl_tls.c8333 size_t hash_size; in ssl_calc_finished_tls_generic() local
8358 status = psa_hash_finish(&cloned_op, padbuf, hlen, &hash_size); in ssl_calc_finished_tls_generic()
/openthread-latest/third_party/mbedtls/repo/tests/include/test/drivers/
Dhash.h39 uint8_t *hash, size_t hash_size, size_t *hash_length);
57 size_t hash_size,
/openthread-latest/third_party/mbedtls/repo/include/psa/
Dcrypto.h864 size_t hash_size,
1063 size_t hash_size,
/openthread-latest/third_party/mbedtls/repo/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja1516 size_t hash_size,
1524 alg, input, input_length, hash, hash_size, hash_length );
1532 hash, hash_size, hash_length );
1541 (void) hash_size;
1633 size_t hash_size,
1641 hash, hash_size, hash_length ) );
1647 hash, hash_size, hash_length ) );
1651 (void) hash_size;
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_x509write.function51 size_t hash_size = 0;
53 hash, PSA_HASH_MAX_SIZE, &hash_size);
/openthread-latest/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c1722 size_t hash_size = 0; in mbedtls_test_ssl_tls12_populate_session() local
1728 &hash_size); in mbedtls_test_ssl_tls12_populate_session()
/openthread-latest/third_party/mbedtls/repo/docs/proposed/
Dpsa-driver-interface.md277 size_t hash_size,