DMTF / libspdm

BSD 3-Clause "New" or "Revised" License
116 stars 106 forks source link

KeyPair support in device_secret_lib_sample should consult crypt algo enabling macro #2915

Open jyao1 opened 4 days ago

jyao1 commented 4 days ago

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.