Home
last modified time | relevance | path

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

12

/openthread-latest/third_party/mbedtls/repo/library/
Dssl_tls13_keys.c141 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_hkdf_expand_label() argument
171 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_hkdf_expand_label()
181 status = psa_key_derivation_setup(&operation, PSA_ALG_HKDF_EXPAND(hash_alg)); in mbedtls_ssl_tls13_hkdf_expand_label()
222 psa_algorithm_t hash_alg, in ssl_tls13_make_traffic_key() argument
230 hash_alg, in ssl_tls13_make_traffic_key()
240 hash_alg, in ssl_tls13_make_traffic_key()
265 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_make_traffic_keys() argument
274 hash_alg, client_secret, secret_len, in mbedtls_ssl_tls13_make_traffic_keys()
282 hash_alg, server_secret, secret_len, in mbedtls_ssl_tls13_make_traffic_keys()
296 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_secret() argument
[all …]
Dssl_tls13_keys.h112 psa_algorithm_t hash_alg,
151 psa_algorithm_t hash_alg,
198 psa_algorithm_t hash_alg,
249 psa_algorithm_t hash_alg,
295 psa_algorithm_t hash_alg,
346 psa_algorithm_t hash_alg,
377 psa_algorithm_t hash_alg,
451 psa_algorithm_t hash_alg,
481 const psa_algorithm_t hash_alg,
Dpsa_crypto_mac.c35 psa_algorithm_t hash_alg) in psa_hmac_setup_internal() argument
39 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_hmac_setup_internal()
40 size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in psa_hmac_setup_internal()
43 hmac->alg = hash_alg; in psa_hmac_setup_internal()
62 status = psa_hash_compute(hash_alg, key, key_length, in psa_hmac_setup_internal()
90 status = psa_hash_setup(&hmac->hash_ctx, hash_alg); in psa_hmac_setup_internal()
117 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal() local
119 size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in psa_hmac_finish_internal()
128 status = psa_hash_setup(&hmac->hash_ctx, hash_alg); in psa_hmac_finish_internal()
Dssl_tls13_client.c705 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_identity() argument
715 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_identity()
723 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_psk() argument
734 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_psk()
744 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_identity() argument
753 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_identity()
761 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_psk() argument
770 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_psk()
827 psa_algorithm_t hash_alg, in ssl_tls13_write_binder() argument
839 binder_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_write_binder()
[all …]
Dpsa_crypto_rsa.c292 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in psa_rsa_decode_md_type() local
293 *md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_decode_md_type()
503 psa_algorithm_t hash_alg = PSA_ALG_RSA_OAEP_GET_HASH(alg); in psa_rsa_oaep_set_padding_mode() local
504 mbedtls_md_type_t md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_oaep_set_padding_mode()
Dpsa_crypto.c284 int psa_can_do_hash(psa_algorithm_t hash_alg) in psa_can_do_hash() argument
286 (void) hash_alg; in psa_can_do_hash()
3851 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in mbedtls_psa_sign_hash_start() local
3852 operation->md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in mbedtls_psa_sign_hash_start()
5443 psa_algorithm_t hash_alg, in psa_key_derivation_start_hmac() argument
5454 operation->mac_size = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_start_hmac()
5459 PSA_ALG_HMAC(hash_alg)); in psa_key_derivation_start_hmac()
5583 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH(kdf_alg); in psa_key_derivation_hkdf_read() local
5584 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_hkdf_read()
5630 hash_alg, in psa_key_derivation_hkdf_read()
[all …]
Dx509write_csr.c147 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(ctx->md_alg); in x509write_csr_der_internal() local
214 if (psa_hash_compute(hash_alg, in x509write_csr_der_internal()
Dssl_tls13_generic.c225 psa_algorithm_t hash_alg = PSA_ALG_NONE; in ssl_tls13_parse_certificate_verify() local
273 hash_alg = mbedtls_md_psa_alg_from_type(md_alg); in ssl_tls13_parse_certificate_verify()
274 if (hash_alg == 0) { in ssl_tls13_parse_certificate_verify()
294 status = psa_hash_compute(hash_alg, in ssl_tls13_parse_certificate_verify()
310 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_parse_certificate_verify()
Dpsa_crypto_ecp.c397 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in mbedtls_psa_ecdsa_sign_hash() local
398 mbedtls_md_type_t md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in mbedtls_psa_ecdsa_sign_hash()
Dpsa_crypto_core.h37 int psa_can_do_hash(psa_algorithm_t hash_alg);
Dssl_msg.c89 psa_algorithm_t hash_alg = PSA_ALG_HMAC_GET_HASH(mac_alg); in mbedtls_ct_hmac() local
90 const size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in mbedtls_ct_hmac()
92 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac()
126 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac()
165 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac()
Dx509_crt.c2138 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(child->sig_md); in x509_crt_check_signature() local
2141 status = psa_hash_compute(hash_alg, in x509_crt_check_signature()
/openthread-latest/third_party/mbedtls/repo/include/psa/
Dcrypto_values.h997 #define PSA_ALG_HMAC(hash_alg) \ argument
998 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1410 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument
1411 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1444 #define PSA_ALG_RSA_PSS(hash_alg) \ argument
1445 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1462 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument
1463 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1533 #define PSA_ALG_ECDSA(hash_alg) \ argument
1534 (PSA_ALG_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
[all …]
Dcrypto_extra.h368 #define PSA_ALG_DSA(hash_alg) \ argument
369 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
386 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ argument
387 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_storage_format.function93 psa_algorithm_t hash_alg =
119 (hash_alg == PSA_ALG_MD5 ||
120 hash_alg == PSA_ALG_RIPEMD160 ||
121 hash_alg == PSA_ALG_SHA_1)) {
127 (hash_alg == PSA_ALG_RIPEMD160 || hash_alg == PSA_ALG_SHA_384)) {
134 (void) hash_alg;
Dtest_suite_psa_crypto_pake.function601 psa_algorithm_t hash_alg = hash_arg;
632 psa_pake_cs_set_hash(&cipher_suite, hash_alg);
785 psa_algorithm_t hash_alg = hash_arg;
801 psa_pake_cs_set_hash(&cipher_suite, hash_alg);
845 psa_algorithm_t hash_alg = hash_arg;
865 psa_pake_cs_set_hash(&cipher_suite, hash_alg);
Dtest_suite_psa_crypto_metadata.function380 psa_algorithm_t hash_alg = PSA_ALG_HMAC_GET_HASH(alg);
385 TEST_ASSERT(PSA_ALG_IS_HASH(hash_alg));
386 TEST_EQUAL(PSA_ALG_HMAC(hash_alg), alg);
396 TEST_EQUAL(PSA_ALG_HMAC_GET_HASH(truncated_alg), hash_alg);
Dtest_suite_ssl.function1517 void ssl_tls13_hkdf_expand_label(int hash_alg,
1545 (psa_algorithm_t) hash_alg,
1560 void ssl_tls13_traffic_key_generation(int hash_alg,
1584 (psa_algorithm_t) hash_alg,
1614 void ssl_tls13_derive_secret(int hash_alg,
1643 (psa_algorithm_t) hash_alg,
1659 void ssl_tls13_derive_early_secrets(int hash_alg,
1668 psa_algorithm_t alg = (psa_algorithm_t) hash_alg;
1693 void ssl_tls13_derive_handshake_secrets(int hash_alg,
1702 psa_algorithm_t alg = (psa_algorithm_t) hash_alg;
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/src/
Dpsa_exercise_key.c344 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in exercise_signature_key() local
345 if (PSA_ALG_IS_SIGN_HASH(alg) && hash_alg == PSA_ALG_ANY_HASH && in exercise_signature_key()
349 hash_alg = KNOWN_SUPPORTED_HASH_ALG; in exercise_signature_key()
350 alg ^= PSA_ALG_ANY_HASH ^ hash_alg; in exercise_signature_key()
367 if (hash_alg != 0) { in exercise_signature_key()
368 payload_length = PSA_HASH_LENGTH(hash_alg); in exercise_signature_key()
807 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH(kdf_alg); in exercise_key_agreement_key() local
809 if (PSA_BITS_TO_BYTES(key_bits) != PSA_HASH_LENGTH(hash_alg)) { in exercise_key_agreement_key()
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names_generated.c57 static const char *psa_hash_algorithm_name(psa_algorithm_t hash_alg) in psa_hash_algorithm_name() argument
59 switch (hash_alg) { in psa_hash_algorithm_name()
Dpsa_constant_names.c69 static const char *psa_hash_algorithm_name(psa_algorithm_t hash_alg);
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dgenerate_psa_tests.py467 hash_alg = m.group(1)
468 hash_length = crypto_knowledge.Algorithm.hash_length(hash_alg)
/openthread-latest/third_party/mbedtls/repo/docs/architecture/psa-migration/
Dmd-cipher-dispatch.md492 int psa_can_do_hash(psa_algorithm_t hash_alg);
495 The job of this private function is to return 1 if `hash_alg` can be performed through PSA now, and…
610 The job of this private function is to return 1 if `hash_alg` can be performed through PSA now, and…
Dpsa-legacy-bridges.md251 … Also there is no way to distinguish between `PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg)` and `PSA_ALG_RS…
311 … hash, and with `PSA_ALG_RSA_PKCS1V15_SIGN_RAW` merged with `PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg)`).
/openthread-latest/third_party/mbedtls/repo/tests/
Dssl-opt.sh590 for hash_alg in SHA_1 SHA_224 SHA_256 SHA_384 SHA_512; do
591 if check_for_hash_alg "$hash_alg"; then
592 hash_alg_variable=HAS_ALG_${hash_alg}

12