libspdm
libspdm copied to clipboard
Improve VCA request / response validation
Examples include:
- Validate that one-hot fields are actually one-hot.
- In negotiate_algorithms the requester loops over ALGORITHMS.param1 without validating it first.
agree
Also in libspdm_try_get_version we need to validate that the major / minor version numbers are legal; 1.0, 1.1, 1.2, etc.
In NEGOTIATE_ALGORITHMS libspdm needs to check struct_table->alg_type.
This has been sufficiently completed.