Lines Matching refs:key_attributes
2597 psa_key_attributes_t key_attributes = PSA_KEY_ATTRIBUTES_INIT; in ssl_get_ecdh_params_from_cert() local
2628 status = psa_get_key_attributes(pk->priv_id, &key_attributes); in ssl_get_ecdh_params_from_cert()
2633 ssl->handshake->xxdh_psa_type = psa_get_key_type(&key_attributes); in ssl_get_ecdh_params_from_cert()
2634 ssl->handshake->xxdh_psa_bits = psa_get_key_bits(&key_attributes); in ssl_get_ecdh_params_from_cert()
2643 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert()
2644 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_get_ecdh_params_from_cert()
2645 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert()
2646 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert()
2648 psa_set_key_bits(&key_attributes, ssl->handshake->xxdh_psa_bits); in ssl_get_ecdh_params_from_cert()
2655 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
2701 key_attributes = psa_key_attributes_init(); in ssl_get_ecdh_params_from_cert()
2702 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_get_ecdh_params_from_cert()
2703 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_get_ecdh_params_from_cert()
2704 psa_set_key_type(&key_attributes, in ssl_get_ecdh_params_from_cert()
2706 psa_set_key_bits(&key_attributes, ssl->handshake->xxdh_psa_bits); in ssl_get_ecdh_params_from_cert()
2714 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
2731 psa_reset_key_attributes(&key_attributes); in ssl_get_ecdh_params_from_cert()
2998 psa_key_attributes_t key_attributes; in ssl_prepare_server_key_exchange() local
3019 key_attributes = psa_key_attributes_init(); in ssl_prepare_server_key_exchange()
3020 psa_set_key_usage_flags(&key_attributes, PSA_KEY_USAGE_DERIVE); in ssl_prepare_server_key_exchange()
3021 psa_set_key_algorithm(&key_attributes, PSA_ALG_ECDH); in ssl_prepare_server_key_exchange()
3022 psa_set_key_type(&key_attributes, handshake->xxdh_psa_type); in ssl_prepare_server_key_exchange()
3023 psa_set_key_bits(&key_attributes, handshake->xxdh_psa_bits); in ssl_prepare_server_key_exchange()
3039 status = psa_generate_key(&key_attributes, in ssl_prepare_server_key_exchange()