Home
last modified time | relevance | path

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

12

/third_party/mbedtls/tests/src/drivers/
Dtest_driver_signature.c60 size_t hash_length, in sign_hash() argument
74 alg, hash, hash_length, in sign_hash()
81 alg, hash, hash_length, in sign_hash()
95 alg, hash, hash_length, in sign_hash()
102 alg, hash, hash_length, in sign_hash()
115 (void) hash_length; in sign_hash()
128 size_t hash_length, in verify_hash() argument
141 alg, hash, hash_length, in verify_hash()
148 alg, hash, hash_length, in verify_hash()
162 alg, hash, hash_length, in verify_hash()
[all …]
Dhash.c37 uint8_t *hash, size_t hash_size, size_t *hash_length) in mbedtls_test_transparent_hash_compute() argument
50 hash, hash_size, hash_length); in mbedtls_test_transparent_hash_compute()
55 hash, hash_size, hash_length); in mbedtls_test_transparent_hash_compute()
62 (void) hash_length; in mbedtls_test_transparent_hash_compute()
159 size_t *hash_length) in mbedtls_test_transparent_hash_finish() argument
171 operation, hash, hash_size, hash_length); in mbedtls_test_transparent_hash_finish()
174 mbedtls_psa_hash_finish(operation, hash, hash_size, hash_length); in mbedtls_test_transparent_hash_finish()
179 (void) hash_length; in mbedtls_test_transparent_hash_finish()
/third_party/mbedtls/library/
Dpsa_crypto_rsa.c317 size_t hash_length, in psa_rsa_decode_md_type() argument
326 if ((int)hash_length > (int)UINT_MAX) { in psa_rsa_decode_md_type()
335 if (mbedtls_hash_info_get_size(*md_alg) != hash_length) { in psa_rsa_decode_md_type()
346 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_rsa_sign_hash() argument
362 status = psa_rsa_decode_md_type(alg, hash_length, &md_alg); in mbedtls_psa_rsa_sign_hash()
381 (unsigned int) hash_length, in mbedtls_psa_rsa_sign_hash()
396 (unsigned int) hash_length, in mbedtls_psa_rsa_sign_hash()
422 size_t hash_length) in rsa_pss_expected_salt_len() argument
430 int hlen = (int) hash_length; // known to fit in rsa_pss_expected_salt_len()
445 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_rsa_verify_hash() argument
[all …]
Dpsa_crypto_hash.c273 size_t *hash_length) in mbedtls_psa_hash_finish() argument
282 *hash_length = hash_size; in mbedtls_psa_hash_finish()
338 *hash_length = actual_hash_length; in mbedtls_psa_hash_finish()
349 size_t *hash_length) in mbedtls_psa_hash_compute() argument
355 *hash_length = hash_size; in mbedtls_psa_hash_compute()
364 status = mbedtls_psa_hash_finish(&operation, hash, hash_size, hash_length); in mbedtls_psa_hash_compute()
Dpsa_crypto_driver_wrappers.c267 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in psa_driver_wrapper_sign_hash() argument
285 alg, hash, hash_length, in psa_driver_wrapper_sign_hash()
306 hash_length, in psa_driver_wrapper_sign_hash()
321 hash_length, in psa_driver_wrapper_sign_hash()
335 hash_length, in psa_driver_wrapper_sign_hash()
351 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in psa_driver_wrapper_verify_hash() argument
369 alg, hash, hash_length, in psa_driver_wrapper_verify_hash()
391 hash_length, in psa_driver_wrapper_verify_hash()
405 hash_length, in psa_driver_wrapper_verify_hash()
418 hash_length, in psa_driver_wrapper_verify_hash()
[all …]
Dpsa_crypto_core.h488 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
523 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
712 const uint8_t *hash, size_t hash_length);
818 const uint8_t *hash, size_t hash_length,
Dpsa_crypto_hash.h60 size_t *hash_length);
196 size_t *hash_length);
Dpsa_crypto.c2243 size_t *hash_length) in psa_hash_finish() argument
2245 *hash_length = 0; in psa_hash_finish()
2251 operation, hash, hash_size, hash_length); in psa_hash_finish()
2258 size_t hash_length) in psa_hash_verify() argument
2271 if (actual_hash_length != hash_length) { in psa_hash_verify()
2292 size_t *hash_length) in psa_hash_compute() argument
2294 *hash_length = 0; in psa_hash_compute()
2300 hash, hash_size, hash_length); in psa_hash_compute()
2305 const uint8_t *hash, size_t hash_length) in psa_hash_compare() argument
2321 if (actual_hash_length != hash_length) { in psa_hash_compare()
[all …]
Dpsa_crypto_driver_wrappers.h60 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
66 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
83 const uint8_t *hash, size_t hash_length);
97 const uint8_t *hash, size_t hash_length,
220 size_t *hash_length);
239 size_t *hash_length);
Dpsa_crypto_ecp.c339 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_ecdsa_sign_hash() argument
373 hash_length, md_alg, in mbedtls_psa_ecdsa_sign_hash()
383 hash, hash_length, in mbedtls_psa_ecdsa_sign_hash()
425 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_ecdsa_verify_hash() argument
473 hash_length, &ecp->Q, in mbedtls_psa_ecdsa_verify_hash()
Dpsa_crypto_ecp.h193 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
228 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
Dpsa_crypto_rsa.h176 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
212 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
Dx509write_crt.c209 size_t hash_length; in mbedtls_x509write_crt_set_key_identifier() local
227 &hash_length); in mbedtls_x509write_crt_set_key_identifier()
429 size_t hash_length = 0; in mbedtls_x509write_crt_der() local
596 &hash_length); in mbedtls_x509write_crt_der()
609 hash, hash_length, sig, sizeof(sig), &sig_len, in mbedtls_x509write_crt_der()
Dssl_tls13_client.c2853 int hash_length; in ssl_tls13_postprocess_new_session_ticket() local
2867 hash_length = PSA_HASH_LENGTH(psa_hash_alg); in ssl_tls13_postprocess_new_session_ticket()
2868 if (hash_length == -1 || in ssl_tls13_postprocess_new_session_ticket()
2869 (size_t) hash_length > sizeof(session->resumption_key)) { in ssl_tls13_postprocess_new_session_ticket()
2876 hash_length); in ssl_tls13_postprocess_new_session_ticket()
2886 hash_length, in ssl_tls13_postprocess_new_session_ticket()
2891 hash_length); in ssl_tls13_postprocess_new_session_ticket()
2900 session->resumption_key_len = hash_length; in ssl_tls13_postprocess_new_session_ticket()
Dssl_tls13_server.c2685 int hash_length; in ssl_tls13_prepare_new_session_ticket() local
2724 hash_length = PSA_HASH_LENGTH(psa_hash_alg); in ssl_tls13_prepare_new_session_ticket()
2725 if (hash_length == -1 || in ssl_tls13_prepare_new_session_ticket()
2726 (size_t) hash_length > sizeof(session->resumption_key)) { in ssl_tls13_prepare_new_session_ticket()
2731 session->resumption_key_len = hash_length; in ssl_tls13_prepare_new_session_ticket()
2742 hash_length, in ssl_tls13_prepare_new_session_ticket()
2747 hash_length); in ssl_tls13_prepare_new_session_ticket()
2761 hash_length); in ssl_tls13_prepare_new_session_ticket()
Dconstant_time.c544 size_t hash_length; in mbedtls_ct_hmac() local
593 PSA_HASH_MAX_SIZE, &hash_length)); in mbedtls_ct_hmac()
618 PSA_CHK(psa_hash_finish(&operation, output, hash_size, &hash_length)); in mbedtls_ct_hmac()
/third_party/mbedtls/tests/include/test/drivers/
Dsignature.h99 const uint8_t *hash, size_t hash_length,
106 const uint8_t *hash, size_t hash_length,
113 const uint8_t *hash, size_t hash_length,
120 const uint8_t *hash, size_t hash_length,
Dhash.h51 uint8_t *hash, size_t hash_size, size_t *hash_length);
70 size_t *hash_length);
/third_party/mbedtls/include/psa/
Dcrypto.h870 size_t *hash_length);
904 size_t hash_length);
1069 size_t *hash_length);
1109 size_t hash_length);
2999 size_t hash_length,
3050 size_t hash_length,
4345 const uint8_t *hash, size_t hash_length);
4557 const uint8_t *hash, size_t hash_length,
Dcrypto_builtin_composites.h126 size_t MBEDTLS_PRIVATE(hash_length);
158 size_t MBEDTLS_PRIVATE(hash_length);
Dcrypto_se_driver.h563 size_t hash_length,
589 size_t hash_length,
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_se_driver_hal_mocks.function54 size_t hash_length;
63 size_t hash_length;
203 size_t hash_length,
216 mock_sign_data.hash_length = hash_length;
226 size_t hash_length,
237 mock_verify_data.hash_length = hash_length;
/third_party/mbedtls/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja274 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
292 alg, hash, hash_length,
313 hash_length,
328 hash_length,
342 hash_length,
358 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
376 alg, hash, hash_length,
398 hash_length,
412 hash_length,
425 hash_length,
[all …]
/third_party/mbedtls/scripts/mbedtls_dev/
Dcrypto_knowledge.py463 def hash_length(cls, alg: str) -> int: member in Algorithm
497 max_length = cls.hash_length(m.group(1))
/third_party/mbedtls/tests/scripts/
Dgenerate_psa_tests.py546 hash_length = crypto_knowledge.Algorithm.hash_length(hash_alg)
549 return key_length > 2 * hash_length + 2

12