-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pivkey: Refactor This refactor abstracts away the need to directly call the upstream piv-go library, implements a common SignerVerifier interface so there is no need to maintain separate types for ECDSA and RSA private keys, and overall is more idiomatic. Additionally, it fixes an issue where the previous initialization functions would lock access to the PIV token, preventing subsequent access even if the originall caller no longer had a need to access the token. Signed-off-by: James Alseth <[email protected]> * cmd/sign: Add -cert flag The `-cert` flag allows for the certificate to be included in the Signature object when signing with `-key` or `-sk`. Adding this certificate ensures that a verifying party does not need to fetch the certificate from some unknown location before being able to validate the identity of the actor that created the signature. Signed-off-by: James Alseth <[email protected]>
- Loading branch information
Showing
10 changed files
with
335 additions
and
137 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.