Skip to content

Commit

Permalink
spdm: large-transfer: set chunk capability
Browse files Browse the repository at this point in the history
In the flags field of a GET_CAPABILITIES request, ensure we indicate
that large transfers are supported by setting the CHUNK_CAP bit [1].

[1] SPDM Spec 1.3: Table 13

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
  • Loading branch information
twilfredo committed Aug 30, 2024
1 parent 27eea65 commit 5fc03a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spdm/req-authenticate.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static int spdm_get_capabilities(struct spdm_state *spdm_state)
rsp_sz = sizeof(*rsp);
req->data_transfer_size = cpu_to_le32(spdm_state->transport_sz);
req->max_spdm_msg_size = cpu_to_le32(UINT_MAX);
req->flags = cpu_to_le32(req->flags | SPDM_CHUNK_CAP);
}

rsp = spdm_state->transcript_end += req_sz;
Expand Down

0 comments on commit 5fc03a9

Please sign in to comment.