Searched refs:key_attributes (Results 1 – 7 of 7) sorted by relevance
/third_party/mbedtls/library/ |
D | ssl_tls13_generic.c | 1472 psa_key_attributes_t key_attributes; in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() local 1489 key_attributes = psa_key_attributes_init(); in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() 1490 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() 1491 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() 1492 psa_set_key_type(&key_attributes, handshake->ecdh_psa_type); in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() 1493 psa_set_key_bits(&key_attributes, handshake->ecdh_bits); in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange() 1496 status = psa_generate_key(&key_attributes, in mbedtls_ssl_tls13_generate_and_write_ecdh_key_exchange()
|
D | ssl_tls12_server.c | 2567 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in ssl_get_ecdh_params_from_cert() local 2593 &key_attributes); in ssl_get_ecdh_params_from_cert() 2599 ssl->handshake->ecdh_psa_type = psa_get_key_type(&key_attributes); in ssl_get_ecdh_params_from_cert() 2600 ssl->handshake->ecdh_bits = psa_get_key_bits(&key_attributes); in ssl_get_ecdh_params_from_cert() 2602 psa_reset_key_attributes(&key_attributes); in ssl_get_ecdh_params_from_cert() 2627 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert() 2628 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_get_ecdh_params_from_cert() 2629 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert() 2630 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert() 2632 psa_set_key_bits(&key_attributes, ssl->handshake->ecdh_bits); in ssl_get_ecdh_params_from_cert() [all …]
|
D | ssl_tls12_client.c | 2756 psa_key_attributes_t key_attributes; in ssl_write_client_key_exchange() local 2775 key_attributes = psa_key_attributes_init(); in ssl_write_client_key_exchange() 2776 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_write_client_key_exchange() 2777 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_write_client_key_exchange() 2778 psa_set_key_type(&key_attributes, handshake->ecdh_psa_type); in ssl_write_client_key_exchange() 2779 psa_set_key_bits(&key_attributes, handshake->ecdh_bits); in ssl_write_client_key_exchange() 2782 status = psa_generate_key(&key_attributes, in ssl_write_client_key_exchange() 2896 psa_key_attributes_t key_attributes; in ssl_write_client_key_exchange() local 2947 key_attributes = psa_key_attributes_init(); in ssl_write_client_key_exchange() 2948 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_write_client_key_exchange() [all …]
|
D | ssl_tls13_keys.c | 1469 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in ssl_tls13_key_schedule_stage_handshake() local 1472 &key_attributes); in ssl_tls13_key_schedule_stage_handshake() 1478 psa_get_key_bits(&key_attributes)); in ssl_tls13_key_schedule_stage_handshake() 1821 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_ssl_tls13_export_handshake_psk() local 1831 status = psa_get_key_attributes(ssl->handshake->psk_opaque, &key_attributes); in mbedtls_ssl_tls13_export_handshake_psk() 1836 *psk_len = PSA_BITS_TO_BYTES(psa_get_key_bits(&key_attributes)); in mbedtls_ssl_tls13_export_handshake_psk()
|
D | ssl_tls.c | 2237 psa_key_attributes_t key_attributes = psa_key_attributes_init(); in mbedtls_ssl_set_hs_psk() local 2261 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in mbedtls_ssl_set_hs_psk() 2268 psa_set_key_usage_flags(&key_attributes, in mbedtls_ssl_set_hs_psk() 2273 psa_set_key_algorithm(&key_attributes, alg); in mbedtls_ssl_set_hs_psk() 2274 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in mbedtls_ssl_set_hs_psk() 2276 status = psa_import_key(&key_attributes, psk, psk_len, &key); in mbedtls_ssl_set_hs_psk() 6121 psa_key_attributes_t key_attributes = psa_key_attributes_init(); in tls_prf_generic() local 6122 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in tls_prf_generic() 6123 psa_set_key_algorithm(&key_attributes, alg); in tls_prf_generic() 6124 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in tls_prf_generic() [all …]
|
/third_party/mbedtls/programs/ssl/ |
D | ssl_client2.c | 778 psa_key_attributes_t key_attributes; in main() local 1965 key_attributes = psa_key_attributes_init(); in main() 1966 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in main() 1967 psa_set_key_algorithm(&key_attributes, alg); in main() 1968 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in main() 1970 status = psa_import_key(&key_attributes, psk, psk_len, &slot); in main()
|
D | ssl_server2.c | 1318 psa_key_attributes_t key_attributes; in psa_setup_psk_key_slot() local 1320 key_attributes = psa_key_attributes_init(); in psa_setup_psk_key_slot() 1321 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in psa_setup_psk_key_slot() 1322 psa_set_key_algorithm(&key_attributes, alg); in psa_setup_psk_key_slot() 1323 psa_set_key_type(&key_attributes, PSA_KEY_TYPE_DERIVE); in psa_setup_psk_key_slot() 1325 status = psa_import_key(&key_attributes, psk, psk_len, slot); in psa_setup_psk_key_slot()
|