forked from secure-systems-lab/securesystemslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SSlibKey validation in _verify
Added checks as requrested in secure-systems-lab#766: - keytype matches scheme - scheme matches deserialized key type (only for pem formatted keyvals; for ed25519 the check happens implicitly on deserialization) - scheme matches deserialized key curve (only for ecdsa) Note that this PR does not move the checks to the constructor as suggested in secure-systems-lab#766. This may or may not be addressed in a follow-up PR. failing tests fixed in secure-systems-lab#794 Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
11 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