Skip to content
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

Import RSA signing keys with PCR policies #70

Merged
merged 3 commits into from
Feb 28, 2020

Conversation

BenDHillier
Copy link
Contributor

@BenDHillier BenDHillier commented Jan 9, 2020

Add importing for RSA signing keys.

The import flow returns a *Key to the user, which can be used to get a tpmSigner to sign digests.

@josephlr
Copy link
Member

@BenDHillier We should rebase this on #73 and use the consolidated handling to use the existing Signer code with these imported keys.

tpm2tools/import.go Outdated Show resolved Hide resolved
tpm2tools/import.go Outdated Show resolved Hide resolved
tpm2tools/import.go Outdated Show resolved Hide resolved
server/import.go Outdated Show resolved Hide resolved
server/import.go Outdated Show resolved Hide resolved
server/import.go Outdated Show resolved Hide resolved
server/import.go Outdated Show resolved Hide resolved
Copy link
Member

@josephlr josephlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'm going to cleanup the commit history and then merge this.

These should be in key_conversion.go

Signed-off-by: Joe Richey <joerichey@google.com>
ImportSigningKey() returns a *Key to the user.
GetSigner() can then be used to get a crypto.Signer to sign digests.

Authored-by: Ben Hillier <bhillier@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants