-
Notifications
You must be signed in to change notification settings - Fork 83
Add server and client Import workflows #36
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
Conversation
c8aed43 to
330775f
Compare
Merge changes
330775f to
be47681
Compare
josephlr
left a comment
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.
Can you be sure to run go fmt on this PR, there's some formatting weirdness.
josephlr
left a comment
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.
Nice work, this is almost done! Again, always be sure to run go fmt ./... on the repo before pushing.
josephlr
left a comment
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.
Please rebase onto master
Also run:
goimports -w **/*.goee3d979 to
f0418c9
Compare
josephlr
left a comment
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.
Awesome job on this.
Add server and client Import workflows (google#36)
Add server.CreateImportRequest for a server side Import workflow.
Add tpm2tools.Import for a client side Import workflow.
Add import testing in server/import_test.go. Only add the one test as there's no way to test the server side and client side workflows separately (Need to run client side to verify server side worked correctly, and vice versa).
Also add a function for creating tpm2.Public objects from crypto.PublicKey's and a corresponding test.