-
Notifications
You must be signed in to change notification settings - Fork 62
[#1090] Fix ACA Provisioning Issue When Using ECC Key #1127
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
Open
ThatSilentCoder
wants to merge
37
commits into
main
Choose a base branch
from
v3.1_issue_1090-fix-aca-provision-using-ecc-key
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,251
−3,482
Open
Changes from 20 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
8964f31
v3.1_issue_1090: First cut of the fixing the ecc provisioning issue.
ThatSilentCoder 331328b
v3.1_issue_1090: Added a new property that keeps track of the algorit…
ThatSilentCoder 553ba00
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 879ec7e
v3.1_issue_1090: Figuring out how to parse the ecc key from the bytes…
ThatSilentCoder 9d14600
v3.1_issue_1090: Fixing warnings/errors pointed out by shell plugin i…
ThatSilentCoder f7969bc
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 4f1e778
v3.1_issue_1090: Fixed a lot of tests. Removed a lot of unused method…
ThatSilentCoder cc01535
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 40bd091
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 45471b0
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 6527bc0
v3.1_issue_1090: SLowly but surely making progress.
ThatSilentCoder 6169988
v3.1_issue_1090: Merged main into local branch.
ThatSilentCoder ac90e40
v3.1_issue_1090: Going to have to complete a function that makes cred…
ThatSilentCoder b3b0259
v3.1_issue_1090: Just to quiet spotbug error.
ThatSilentCoder ad14f48
v3.1_issue_1090: Changed variable names in the provisionutils parser …
ThatSilentCoder 9da7763
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder a0a49b4
v3.1_issue_1090: Converted helper class to service, started creating …
ThatSilentCoder fc79f20
v3.1_issue_1090: Made some name changes to the service classes, refac…
ThatSilentCoder 72393a2
v3.1_issue_1120: Finished refactoring the identityclaimprocessor. nee…
ThatSilentCoder a190682
v3.1_issue_1090: Fixed the error that is mentioned in the issue. Will…
ThatSilentCoder 8f256fd
v3.1_issue_1090: Should fix the unusual system error.
ThatSilentCoder c55528c
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder b368c91
v3.1_issue_1127: Adding the setup ecc keys param to the powershell sc…
ThatSilentCoder ac0ec5c
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 5e57027
v3.1_issue1127: Can now add rsa,ecc properties to the spring file whe…
ThatSilentCoder 7fb5757
v3.1_issue1127: Finished modifying powershell scripts to accept the t…
ThatSilentCoder 1c796c5
Piped output of write-output to WriteAndLog function
ThatSilentCoder 35be596
MSBuild should build msi on fips systems; better version reporting (#…
iadgovuser29 fb47a66
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 335c42c
v3.1_issue_1127: Created a new service class for the tpm state. Refac…
ThatSilentCoder 7e8307a
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder 51d284d
v3.1_issue_1127: Forgot to add autowired annotation to the Tpm2Provis…
ThatSilentCoder 582911e
v3.1_issue_1127: This should fix the build error on github.
ThatSilentCoder d567049
v3.1_issue_1127: Finished the make credential using ecc keys func in …
ThatSilentCoder 252dedc
Merge branch 'main' into v3.1_issue_1090-fix-aca-provision-using-ecc-key
ThatSilentCoder e63a30e
v3.1_issue_1127: Corrected some checkstyle errors, added a new packag…
ThatSilentCoder 68b1a7f
v3.1_issue_1127: Addressed checkstyle warnings
ThatSilentCoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
140 changes: 0 additions & 140 deletions
140
...testationCA/src/main/java/hirs/attestationca/persist/AttestationCertificateAuthority.java
This file was deleted.
Oops, something went wrong.
135 changes: 0 additions & 135 deletions
135
...onCA/src/main/java/hirs/attestationca/persist/RestfulAttestationCertificateAuthority.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
65 changes: 65 additions & 0 deletions
65
HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/enums/PublicKeyAlgorithm.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| package hirs.attestationca.persist.enums; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
|
|
||
| /** | ||
| * Enum representing public key algorithms for asymmetric cryptography. | ||
| * <p> | ||
| * This enum currently includes: | ||
| * <ul> | ||
| * <li>{@link #RSA} – RSA public-key algorithm.</li> | ||
| * <li>{@link #ECC} – Elliptic Curve (EC) public-key algorithm, commonly referred to as ECC.</li> | ||
| * </ul> | ||
| * <p> | ||
| * Each enum constant holds the public key algorithm name and id. The ID is listed on the | ||
| * <a href="https://trustedcomputinggroup.org/wp-content/uploads/TCG-Algorithm-Registry-Version-2.0_pub.pdf"> | ||
| * TCG Algorithm Registry Version PDF.</a> | ||
| */ | ||
| @Getter | ||
| @AllArgsConstructor | ||
| @ToString | ||
| public enum PublicKeyAlgorithm { | ||
| /** | ||
| * RSA Public Key Algorithm. | ||
| */ | ||
| RSA(0x0001, "RSA"), | ||
|
|
||
| /** | ||
| * ECC Public Key Algorithm. | ||
| */ | ||
| ECC(0x0023, "ECC"), | ||
|
|
||
| /** | ||
| * Represents an unknown public key algorithm. | ||
| * This is used when the application encounters a public key algorithm that is not recognized or supported. | ||
| */ | ||
| UNKNOWN(0xFFFF, "UNKNOWN"); | ||
|
|
||
| /** | ||
| * The hexadecimal representation of the algorithm ID as represented in the TCG documents. | ||
| */ | ||
| private final int algorithmId; | ||
|
|
||
| /** | ||
| * The name of the algorithm. | ||
| */ | ||
| private final String algorithmName; | ||
|
|
||
| /** | ||
| * Retrieves the enum by the algorithm ID. | ||
| * | ||
| * @param algorithmId algorithm ID | ||
| * @return ENUM representation of the public key algorithm | ||
| */ | ||
| public static PublicKeyAlgorithm fromId(final int algorithmId) { | ||
| for (PublicKeyAlgorithm algo : values()) { | ||
| if (algo.getAlgorithmId() == algorithmId) { | ||
| return algo; | ||
| } | ||
| } | ||
| return UNKNOWN; // If no match found, return UNKNOWN | ||
| } | ||
| } | ||
|
|
2 changes: 1 addition & 1 deletion
2
...A/src/main/java/hirs/attestationca/persist/exceptions/CertificateProcessingException.java
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
No longer need to exclude a test from the test classes since the SpotBug error has been addressed