-
Notifications
You must be signed in to change notification settings - Fork 159
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 support for hash sequence #219
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Hi @josephlr |
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.
Thanks for the change! This looks good to me, I have a structural comment (interested in @josephlr or @twitchy-jsonp opinions on it as well) and one optional request.
Do you guys want me to change anything else? |
Sorry for the delay, I usually wait for another reviewer before merging. In any case, can you rebase onto master? Github might be able to do it automatically. |
Rebased! @twitchy-jsonp And how about the enum discussion above? Note that everytime someone ask me to change something I'll ask for that reviewer approval again. |
I think I prefer consistency over correctness for something simple like an enum, and hence would prefer a consistent order. That said, if you are gunning to get this merged, I can leave it be, either way. |
Then I'll send a commit putting the new values in numerical order. Note: I'm using this library in a project and I already have more changes/fixes to submit, but I can only do so after this one gets merged |
@chrisfenner who is the expert here. LGTM. |
Enum reordered and tests completed. =) |
@chrisfenner @twitchy-jsonp @josephlr it does appear that you guys don't have much time do maintain this repo, so I would like to offer my help as maintainer. I work at HPE and I've wrote a Go TSS package covering almost the same commands and types that you guys have here. All this just is just an attempt convince you guys that I do have experience with TPM2 and that I'm able to help this project. |
Could someone finish merging this PR, please? |
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.
This is really great, I have a bunch of style nits, but no substantial issues.
Thanks for submitting this and sorry for the delay in review.
Thanks for the offer. If you want to help out with some existing pending PRs, we could totally look into adding you as a maintainer. My apologies that this review languished for so long. It's a good change that should have been quickly reviewed an approved. We've been meaning to rework this library to autogenerate all the necessary code for all commands/structures from the Spec, but that effort has languished (mostly due to other stuff coming up at work). I would really like to get an autogenerated API, so that we don't keep having to add commands piecemeal.
This is really cool. Needless to say, there aren't a ton of people who have the necessary expertise, so anyone willing to help is welcome. |
@josephlr I've just fixed the import and If you still prefer the more condensed form, I already have the "nit" changes made and ready to Go. Regarding the code generation, how far did you guys went? |
I totally get the point you're making here, but we generally shoot for consistency with respect to the style, and it seems like inline error handling (at least for shot statements) is somewhat the norm. I realize it's not perfect, but it's the approach I try to use across our projects. If you could add the nit fixes, I can get this merged.
We should open up a tracking issue for this stuff. Long story short, we asked Microsoft to open-source the codegen tool they use for other languages, and they did. See: https://github.com/microsoft/TSS.MSR/tree/master/TssCodeGen Their official process is quite complex, but we would ideally add Go to the languages currently supported, so that we can just generate the entire Go API surface at once. |
Adding support for
HashSequenceStart
,SequenceUpdate
andSequenceComplete
.Closes issue #179