-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
I feel like this is overlay complicated, but it's hard to integrate it with the C libspdm callbacks and the Rust libspdm crate |
13331c9
to
ce3f597
Compare
#96 should be merged first to fix the CI first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! left some suggestions
b3b5028
to
6931c2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, left some comments
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 <wilfred.mallawa@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
…cate_to_nvm Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
6931c2c
to
9bc31eb
Compare
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 theLazy
DYN_IMAGE_MEASURE
.