ccc-spdm-tools / spdm-rs

A rust implementation for DMTF SPDM protocol to support Confidential Computing
Other
21 stars 13 forks source link

Support for `ERROR (ResponseNotReady)`? #27

Open imlk0 opened 9 months ago

imlk0 commented 9 months ago

The SPDM doc mentioned that if a Responder is not ready to return response, it may return a ERROR (ResponseNotReady) message.

548 10.13 RESPOND_IF_READY request message format

and

Figure 14 — RESPOND_IF_READY flow leading to completion

For example, the Requester may receive a ERROR (ResponseNotReady) when a CHALLENGE_AUTH response is expected. However, this this mechanism does not seem to be implemented in spdm-rs. https://github.com/ccc-spdm-tools/spdm-rs/blob/a2aa7a6adf36b1f4cd3f4911542b1d45a64db38a/test/spdm-requester-emu/src/main.rs#L283-L292

jyao1 commented 9 months ago

It is not supported yet. Do you want to propose a patch?