-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RSA signature verification: Avoid wasteful key re-serialization.
When we added `rsa::PublicKey` we changed the `ring::signature` RSA implementation to construct an `rsa::PublicKey` and then verify the signature using it. Unfortunately for backward compatibility with old uses of `RsaKeyPair`, `rsa::PublicKey` constructor constructs (and allocates) a copy of the ASN.1-serialized public key. This is not acceptable for users who are using `ring::signature` to verify a single signature. Refactor `PublicKey` so that it can be bypassed by the `ring::signature` implementation. This is a step towards implementing allocation-free RSA signature verification.
- Loading branch information
1 parent
6920c4f
commit 8ed4860
Showing
4 changed files
with
66 additions
and
32 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