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

Add dynamic image measurement #95

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Add dynamic image measurement #95

merged 2 commits into from
Jul 31, 2024

Commits on Jul 31, 2024

  1. Add dynamic image measurement

    Add a command line argument for responders to enable dynamic image
    measurement. This allows us to more accuratly model a real respnoder.
    
    At startup we spawn two threads to hash the "kernel" and the
    application. We currently join them before running the responder, we
    actually only need to do this before generating the measurement, but
    there isn't a nice way to do that from the libspdm Rust library. I
    thought of a closure callback, but it's all a bit messy so the current
    approach will do for now.
    
    `libspdm_fill_measurement_image_hash_block()` will now dynamically use a
    type of image block based on the init status of the `Lazy`
    `DYN_IMAGE_MEASURE`.
    
    Signed-off-by: Wilfred Mallawa <[email protected]>
    Signed-off-by: Alistair Francis <[email protected]>
    twilfredo authored and alistair23 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    86cc5df View commit details
    Browse the repository at this point in the history
  2. libpsmd: spdm: Fixup unused warnings for no_std libspdm_write_certifi…

    …cate_to_nvm
    
    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    9bc31eb View commit details
    Browse the repository at this point in the history