-
-
Notifications
You must be signed in to change notification settings - Fork 170
PcrEventInputs alloc-only method? #780
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
Comments
Furthermore, I realize that |
Thanks for the report, good catch. The allocation should happen automatically, indeed. |
I think the simplest thing to do here is just allocate a reasonable static size. It's OK for the buffer to be bigger than necessary, it just can't be smaller. For example: https://chromium.googlesource.com/chromiumos/platform/crdyboot/+/refs/heads/main/libcrdy/src/tpm.rs#132 That said, adding a new method to create a boxed allocation would also be good, I'll take a look at doing that. |
Hi there (again me), I am doing some TPM2 stuff with the library.
I see that
PcrEventInputs::new_in_buffer
is available, but requires the user to perform the allocation, it is a bit suboptimal because the required size requires using computations of the sizes (basically copying the first line in the impl).This could be awesome with a
PcrEventInputs::new
which does the allocation for us.The text was updated successfully, but these errors were encountered: