Searched refs:key_attributes (Results 1 – 5 of 5) sorted by relevance
/library/ |
A D | ssl_tls12_server.c | 2525 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in ssl_get_ecdh_params_from_cert() local 2562 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert() 2564 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert() 2565 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert() 2602 psa_reset_key_attributes(&key_attributes); in ssl_get_ecdh_params_from_cert() 2771 psa_key_attributes_t key_attributes; in ssl_prepare_server_key_exchange() local 2792 key_attributes = psa_key_attributes_init(); in ssl_prepare_server_key_exchange() 2794 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_prepare_server_key_exchange() 2795 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in ssl_prepare_server_key_exchange() 2796 psa_set_key_bits(&key_attributes, handshake->xxdh_psa_bits); in ssl_prepare_server_key_exchange() [all …]
|
A D | ssl_tls12_client.c | 2392 psa_key_attributes_t key_attributes; in ssl_write_client_key_exchange() local 2411 key_attributes = psa_key_attributes_init(); in ssl_write_client_key_exchange() 2413 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_write_client_key_exchange() 2414 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in ssl_write_client_key_exchange() 2415 psa_set_key_bits(&key_attributes, handshake->xxdh_psa_bits); in ssl_write_client_key_exchange() 2418 status = psa_generate_key(&key_attributes, in ssl_write_client_key_exchange() 2470 psa_key_attributes_t key_attributes; in ssl_write_client_key_exchange() local 2521 key_attributes = psa_key_attributes_init(); in ssl_write_client_key_exchange() 2523 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_write_client_key_exchange() 2524 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in ssl_write_client_key_exchange() [all …]
|
A D | ssl_tls13_generic.c | 1522 psa_key_attributes_t key_attributes; in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() local 1557 key_attributes = psa_key_attributes_init(); in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() 1558 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() 1559 psa_set_key_algorithm(&key_attributes, alg); in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() 1560 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() 1561 psa_set_key_bits(&key_attributes, handshake->xxdh_psa_bits); in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange() 1564 status = psa_generate_key(&key_attributes, in mbedtls_ssl_tls13_generate_and_write_xxdh_key_exchange()
|
A D | ssl_tls13_keys.c | 1442 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in ssl_tls13_key_schedule_stage_handshake() local 1445 &key_attributes); in ssl_tls13_key_schedule_stage_handshake() 1451 psa_get_key_bits(&key_attributes)); in ssl_tls13_key_schedule_stage_handshake() 1795 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_ssl_tls13_export_handshake_psk() local 1805 status = psa_get_key_attributes(ssl->handshake->psk_opaque, &key_attributes); in mbedtls_ssl_tls13_export_handshake_psk() 1810 *psk_len = PSA_BITS_TO_BYTES(psa_get_key_bits(&key_attributes)); in mbedtls_ssl_tls13_export_handshake_psk()
|
A D | ssl_tls.c | 1976 psa_key_attributes_t key_attributes = psa_key_attributes_init(); in mbedtls_ssl_set_hs_psk() local 1998 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in mbedtls_ssl_set_hs_psk() 2005 psa_set_key_usage_flags(&key_attributes, in mbedtls_ssl_set_hs_psk() 2010 psa_set_key_algorithm(&key_attributes, alg); in mbedtls_ssl_set_hs_psk() 2011 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in mbedtls_ssl_set_hs_psk() 2013 status = psa_import_key(&key_attributes, psk, psk_len, &key); in mbedtls_ssl_set_hs_psk() 6120 psa_key_attributes_t key_attributes = psa_key_attributes_init(); in tls_prf_generic() local 6121 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in tls_prf_generic() 6122 psa_set_key_algorithm(&key_attributes, alg); in tls_prf_generic() 6123 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in tls_prf_generic() [all …]
|
Completed in 38 milliseconds