-
Notifications
You must be signed in to change notification settings - Fork 3
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
attest-data messages #220
attest-data messages #220
Conversation
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.
license-eye has checked 53 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
13 | 1 | 39 | 0 |
Click to see the invalid file list
- attest-data/src/messages.rs
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
ec7a737
to
37d6ef5
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.
I'm in transit for a bit but will try to get this reviewed ASAP
let header_len = hubpack::serialize(out, header)?; | ||
let mut n = header_len; | ||
|
||
let out_data_end = out.len(); |
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.
Nit: you can do a one-sided range out[n..]
instead of out[n..out_data_end]
/// Unexpected command returned | ||
UnexpectedCommand, | ||
/// Error return from the sprot command | ||
SprotError(SprotError), |
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.
Design question: because we're already supporting nested errors, should we have an error hierarchy here that matches the one in Hubris (variants for Protocol
, Spi
, Attest
, etc) instead of putting them all in SprotError(..)
?
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.
I went back and forth on that. We really only care about errors from Protocol
Spi
and Attest
so it didn't seem that helpful to have a hierarchy vs. a flat error structure.
60638a6
to
1df0cdb
Compare
These are designed to be sent over IPCC (communication channel between Host OS and SP)
1df0cdb
to
83ca8f5
Compare
No description provided.