Lines Matching refs:key_attributes

2575     psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT;  in ssl_get_ecdh_params_from_cert()  local
2606 status = psa_get_key_attributes(pk->priv_id, &key_attributes); in ssl_get_ecdh_params_from_cert()
2611 ssl->handshake->xxdh_psa_type = psa_get_key_type(&key_attributes); in ssl_get_ecdh_params_from_cert()
2612 ssl->handshake->xxdh_psa_bits = psa_get_key_bits(&key_attributes); in ssl_get_ecdh_params_from_cert()
2621 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert()
2622 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_get_ecdh_params_from_cert()
2623 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert()
2624 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert()
2626 psa_set_key_bits(&key_attributes, ssl->handshake->xxdh_psa_bits); in ssl_get_ecdh_params_from_cert()
2633 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
2679 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert()
2680 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_get_ecdh_params_from_cert()
2681 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert()
2682 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert()
2684 psa_set_key_bits(&key_attributes, ssl->handshake->xxdh_psa_bits); in ssl_get_ecdh_params_from_cert()
2692 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
2709 psa_reset_key_attributes(&key_attributes); in ssl_get_ecdh_params_from_cert()
2976 psa_key_attributes_t key_attributes; in ssl_prepare_server_key_exchange() local
2997 key_attributes = psa_key_attributes_init(); in ssl_prepare_server_key_exchange()
2998 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_prepare_server_key_exchange()
2999 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_prepare_server_key_exchange()
3000 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in ssl_prepare_server_key_exchange()
3001 psa_set_key_bits(&key_attributes, handshake->xxdh_psa_bits); in ssl_prepare_server_key_exchange()
3017 status = psa_generate_key(&key_attributes, in ssl_prepare_server_key_exchange()