| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ssl_tls13_keys.c | 141 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 …]
|
| H A D | ssl_tls13_keys.h | 112 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, 660 int mbedtls_ssl_tls13_exporter(const psa_algorithm_t hash_alg,
|
| H A D | psa_crypto_mac.c | 35 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()
|
| H A D | ssl_tls13_client.c | 706 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_identity() argument 716 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_identity() 724 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_psk() argument 735 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_psk() 745 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_identity() argument 754 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_identity() 762 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_psk() argument 771 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_psk() 828 psa_algorithm_t hash_alg, in ssl_tls13_write_binder() argument 840 binder_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_write_binder() [all …]
|
| H A D | psa_crypto_rsa.c | 291 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in psa_rsa_decode_md_type() local 292 *md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_decode_md_type() 502 psa_algorithm_t hash_alg = PSA_ALG_RSA_OAEP_GET_HASH(alg); in psa_rsa_oaep_set_padding_mode() local 503 mbedtls_md_type_t md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_oaep_set_padding_mode()
|
| H A D | psa_crypto.c | 284 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() 3036 psa_algorithm_t hash_alg = 0; in psa_sign_verify_check_alg() local 3038 hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in psa_sign_verify_check_alg() 3046 if (hash_alg == 0 && input_is_message) { in psa_sign_verify_check_alg() 3049 if (hash_alg == PSA_ALG_ANY_HASH) { in psa_sign_verify_check_alg() 3070 if (hash_alg != 0 && !is_hash_supported(hash_alg)) { in psa_sign_verify_check_alg() 4037 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in mbedtls_psa_sign_hash_start() local 4038 operation->md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in mbedtls_psa_sign_hash_start() 5661 psa_algorithm_t hash_alg, in psa_key_derivation_start_hmac() argument [all …]
|
| H A D | x509write_csr.c | 152 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(ctx->md_alg); in x509write_csr_der_internal() local 219 if (psa_hash_compute(hash_alg, in x509write_csr_der_internal()
|
| H A D | ssl_tls13_generic.c | 235 psa_algorithm_t hash_alg = PSA_ALG_NONE; in ssl_tls13_parse_certificate_verify() local 283 hash_alg = mbedtls_md_psa_alg_from_type(md_alg); in ssl_tls13_parse_certificate_verify() 284 if (hash_alg == 0) { in ssl_tls13_parse_certificate_verify() 304 status = psa_hash_compute(hash_alg, in ssl_tls13_parse_certificate_verify() 320 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_parse_certificate_verify()
|
| H A D | psa_crypto_ecp.c | 395 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in mbedtls_psa_ecdsa_sign_hash() local 396 mbedtls_md_type_t md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in mbedtls_psa_ecdsa_sign_hash()
|
| H A D | ssl_tls.c | 7098 mbedtls_md_type_t hash_alg = (mbedtls_md_type_t) handshake->ciphersuite_info->mac; in ssl_compute_master() local 7104 if (hash_alg == MBEDTLS_MD_SHA384) { in ssl_compute_master() 9172 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(md_alg); in mbedtls_ssl_get_key_exchange_md_tls1_2() local 9177 hash_alg)) != PSA_SUCCESS) { in mbedtls_ssl_get_key_exchange_md_tls1_2() 10061 const mbedtls_md_type_t hash_alg, in mbedtls_ssl_tls12_export_keying_material() argument 10104 ret = tls_prf_generic(hash_alg, ssl->session->master, sizeof(ssl->session->master), in mbedtls_ssl_tls12_export_keying_material() 10115 const mbedtls_md_type_t hash_alg, in mbedtls_ssl_tls13_export_keying_material() argument 10123 const psa_algorithm_t psa_hash_alg = mbedtls_md_psa_alg_from_type(hash_alg); in mbedtls_ssl_tls13_export_keying_material() 10124 const size_t hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_export_keying_material() 10160 const mbedtls_md_type_t hash_alg = ciphersuite->mac; in mbedtls_ssl_export_keying_material() local [all …]
|
| H A D | ssl_msg.c | 90 psa_algorithm_t hash_alg = PSA_ALG_HMAC_GET_HASH(mac_alg); in mbedtls_ct_hmac() local 91 const size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in mbedtls_ct_hmac() 93 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac() 127 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac() 166 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac()
|
| H A D | x509_crt.c | 2140 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(child->sig_md); in x509_crt_check_signature() local 2143 status = psa_hash_compute(hash_alg, in x509_crt_check_signature()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_values.h | 997 #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 …]
|
| H A D | crypto_extra.h | 386 #define PSA_ALG_DSA(hash_alg) \ argument 387 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 404 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ argument 405 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 611 int psa_can_do_hash(psa_algorithm_t hash_alg);
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing.h | 26 enum pkcs11_mechanism_id hash_alg; member 41 enum pkcs11_mechanism_id hash_alg; member 59 enum pkcs11_mechanism_id hash_alg; member
|
| H A D | processing_rsa.c | 52 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_pss() 70 switch (rsa_pss_ctx->hash_alg) { in pkcs2tee_validate_rsa_pss() 245 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_oaep() 307 ctx->hash_alg = hash; in pkcs2tee_proc_params_rsa_aes_wrap()
|
| /optee_os/core/drivers/imx/dcp/ |
| H A D | dcp.c | 46 static const struct dcp_hashalg hash_alg[2] = { variable 497 desc->ctrl1 = hash_alg[hashdata->alg].type; in dcp_sha_do_init() 599 if (digest_size < hash_alg[hashdata->alg].size) { in dcp_sha_do_final() 601 hash_alg[hashdata->alg].size); in dcp_sha_do_final() 606 payload_size = hash_alg[hashdata->alg].size; in dcp_sha_do_final()
|
| /optee_os/core/drivers/crypto/caam/hash/ |
| H A D | caam_hash.c | 33 static const struct hashalg hash_alg[] = { variable 359 if (hash_id > caam_hash_limit || idx > ARRAY_SIZE(hash_alg)) in caam_hash_get_alg() 362 return &hash_alg[idx]; in caam_hash_get_alg()
|