Repository navigation
Conversation
arckoor
force-pushed
the
key-handling-refactor
branch
from
December 4, 2026 14:50
4188755 to
adbb6ef
Compare
Collaborator
Author
|
One would imagine that when github offers these things, they would work, but oh well :p |
arckoor
force-pushed
the
key-handling-refactor
branch
from
December 4, 2026 14:53
adbb6ef to
2fe692b
Compare
This was referenced Dec 4, 2026
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
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.
Removes
from_*_pemandfrom_*_derand replaces them withfrom_pemandfrom_pkcs8/from_spki(andfrom_pkcs1, for legacy RSA keys).All private keys are PKCS#8 internally now, PKCS#1 RSA keys get wrapped in PKCS#8.
Where possible
AlgorithmFamilyis deduced automatically, and all PEM / DER encodings are validated before extracting the key.Validation for
CERTIFICATEis good but not complete, the three optional parts at the end (issuerUniqueID,subjectUniqueID,extensions) are not decoded fully. But imo good enough.Also redacts the Debug impl for
OctetKeyParameters.Closes #292, closes #331, closes #337, closes #362, closes #398, closes #426, closes #544, closes #547.