-
Notifications
You must be signed in to change notification settings - Fork 129
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 RSA 3072 keys #244
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull Request Test Coverage Report for Build 2148
💛 - Coveralls |
stefanberger
commented
Apr 23, 2020
stefanberger
force-pushed
the
rsa_3072
branch
4 times, most recently
from
April 24, 2020 19:04
9561ac3
to
54c8e1b
Compare
stefanberger
commented
Apr 24, 2020
stefanberger
force-pushed
the
rsa_3072
branch
11 times, most recently
from
May 1, 2020 15:54
039bb4e
to
bfa8c09
Compare
stefanberger
force-pushed
the
rsa_3072
branch
6 times, most recently
from
May 4, 2020 23:17
fb3f992
to
5d71211
Compare
Extend the --print-capabilities option to also report supported RSA key sizes. Only the TPM 2 may support anything else than 2048 bit RSA keys, so we only consult 'swtpm socket --tpm2 --print-capabilities' and grep for 2048 and 3072 key sizes and report them. If nothing is found, nothing is reported, as before, and 2048 bit RSA keys should be assumed. 'swtpm_setup --tpm2 --print-capabilities' may now show the following: { "type": "swtpm_setup", "features": [ "cmdarg-keyfile-fd", "cmdarg-pwdfile-fd", "tpm2-rsa-keysize-2048", "tpm2-rsa-keysize-3072" ] } Also adjust a test case to use a regular expression for matching against an expected string that may nor may not have rsa-keysize verbs. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Extend the creation of the EK key to support also 3072 bits RSA keys. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Extend a few test cases to also test with RSA 3072 bit keys if they are supported. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
By passing '--rsa-keysize max' allow to create the largest possible RSA EK key. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for RSA 3072 keys by