Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport: storage: add support for SPDM over the storage binding (DSP0286) #2827

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Nov 22, 2024

  1. libspdm_common_lib: support bswap functionality

    Add support for bswap16 and 32. Also rename the existing
    `libspdm_le_to_be_64` to `libspdm_byte_swap_64` for consistency.
    
    Signed-off-by: Wilfred Mallawa <[email protected]>
    twilfredo committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    1f239db View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. library: Initial support for storage transport

    As defined by DSP0826, add support for SPDM storage transport. The
    transport layer uses a virtual storage header that encapsulates SPDM
    requests to allow the caller to generate the required parameters
    for a storage SPDM request. SPDM responses are not transport encoded,
    with this header, instead just the message is returned.
    
    Signed-off-by: Wilfred Mallawa <[email protected]>
    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 authored and twilfredo committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    f830d64 View commit details
    Browse the repository at this point in the history
  2. req_communication: pass session ID to transport

    This allows transports such as Storage (DSP0286) to determine if the
    next response is protected via secured messages. Unlike other transport
    layers, storage does not encode the message type in a response header.
    As such, the requester must track the expected type.
    
    The issue [1] discusses this implementation requirement in further
    detail with regards to DSP0286.
    
    [1] DMTF/SPDM-WG#3520
    
    Signed-off-by: Wilfred Mallawa <[email protected]>
    Signed-off-by: Alistair Francis <[email protected]>
    twilfredo committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    871e2aa View commit details
    Browse the repository at this point in the history
  3. transport: storage: add tests

    Signed-off-by: Wilfred Mallawa <[email protected]>
    twilfredo committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    d2b370a View commit details
    Browse the repository at this point in the history
  4. fuzzing: connect spdm storage tests

    Signed-off-by: Wilfred Mallawa <[email protected]>
    twilfredo committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    10033fd View commit details
    Browse the repository at this point in the history