Currently, the code libspdm_init_key_pair_info() unconditionally include all crypto algorithms defined in SPDM spec.
The right way is to consult spdm_lib_config.h, LIBSPDM_RSA_SSA_2048_SUPPORT, LIBSPDM_ECDSA_P256_SUPPORT, LIBSPDM_SM2_DSA_P256_SUPPORT, etc. to conditionally report such capability.
Currently, the code libspdm_init_key_pair_info() unconditionally include all crypto algorithms defined in SPDM spec.
The right way is to consult spdm_lib_config.h, LIBSPDM_RSA_SSA_2048_SUPPORT, LIBSPDM_ECDSA_P256_SUPPORT, LIBSPDM_SM2_DSA_P256_SUPPORT, etc. to conditionally report such capability.