-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pk/rsa: Fix GC rooting issues and fill out API
MbedTLS is passing raw pointers to C without rooting ownership all over the place. This fixes these issues in the pk/rsa code and fills out the API a bit for round-trip testing, as well as adding GC-safe wrappers over the internal mp integers for downstream code to use. Of course, the unsafe GC pattern is repeated elsewhere in this package, so this is just a first PR that fixed the API surface that I happened to need.
- Loading branch information
Showing
3 changed files
with
121 additions
and
31 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