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

Add TpmSigner #56

Merged
merged 2 commits into from
Nov 19, 2019
Merged

Add TpmSigner #56

merged 2 commits into from
Nov 19, 2019

Conversation

BenDHillier
Copy link
Contributor

TpmSigner only supports RSA PKCS#1 v1.5 signing. Subsequent PRs will add PSS and ECC support.

There will also be a PR for adding a (k *Key) GetSigner function, which will check that the Key is appropriate to be used as a Signer.

Also enables SHA512 in the simulator. The simulator told me to set MAX_CONTENT_SIZE to 1360 when I tried to run it after enabling SHA512.

@BenDHillier BenDHillier requested a review from josephlr October 24, 2019 22:00
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.

Nice start on this. I think it's a good idea to only do PKCS#1 v1.5 RSA signing first, as it lets us get framework in place.

However, I think this PR should add a GetSigner() method to Key, I go into more detail in my review comments, but which error checking we do where is important.

simulator/ms-tpm-20-ref/TPMCmd/tpm/include/TpmProfile.h Outdated Show resolved Hide resolved
simulator/ms-tpm-20-ref/TPMCmd/tpm/include/TpmProfile.h Outdated Show resolved Hide resolved
tpm2tools/signer_test.go Outdated Show resolved Hide resolved
tpm2tools/signer.go Outdated Show resolved Hide resolved
tpm2tools/signer.go Outdated Show resolved Hide resolved
tpm2tools/signer_test.go Show resolved Hide resolved
tpm2tools/signer_test.go Show resolved Hide resolved
tpm2tools/signer_test.go Show resolved Hide resolved
tpm2tools/signer_test.go Show resolved Hide resolved
tpm2tools/signer.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.

Nice job, just fix a few nits and rebase this change, and we should be good to go.

tpm2tools/signer.go Outdated Show resolved Hide resolved
tpm2tools/signer.go Show resolved Hide resolved
@BenDHillier BenDHillier merged commit a84e465 into google:master Nov 19, 2019
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.

2 participants