-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logic for extracting publicKey and subjectKeyId for ED25519 key (#…
…182) * Fix inability to generate "subject key ID" for ED25519 In the process, drastically simplified its implementation. * Fixed bug where we were passing around ED25519 keys by reference, while it's library clearly prefers the use of copy This is more about remain consistent with the interface of the library we are using, than actually optimal choice * Add tests to prove that we can use ED25519 keys for all our certificates * Use generic `crypto.Signer` interface when getting a `crypto.PublicKey` from a `crypto.PrivateKey` * Generate Subject Key ID using ASN1 marshalling * Fixing typos * Splitted tests for performance * Adding nil pointer checks
- Loading branch information
Ivan De Marino
authored
Apr 5, 2022
1 parent
53ab2c1
commit 8e76bad
Showing
6 changed files
with
310 additions
and
40 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
Oops, something went wrong.