Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RSA non-blocking support #1901

Merged
merged 1 commit into from
Nov 7, 2018
Merged

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Oct 29, 2018

  • Enabled with WC_RSA_NONBLOCK.
  • Adds new wc_RsaSetNonBlock function for enabling / non-block context.
  • Adds wolfCrypt test function rsa_nb_test to validate.
  • Improvements to the signature sign/verify wrappers.

Result is:

RSA non-block sign: 8200 times
RSA non-block verify: 264 times

@dgarske dgarske self-assigned this Oct 29, 2018
… new `wc_RsaSetNonBlock` function for enabling / non-block context. Added wolfCrypt test function `rsa_nb_test` to validate. Result is: `RSA non-block sign: 8200 times` and `RSA non-block verify: 264 times`

* Signature wrapper improvements to eliminate mallocs/frees unless small stack is used. If small stack is used only one allocation is done based on actual max (was previously was allocating too much and in the encoding case was reallocating a second buffer).
@dgarske dgarske requested a review from toddouska November 2, 2018 21:00
@dgarske dgarske assigned toddouska and unassigned dgarske Nov 6, 2018
@toddouska toddouska merged commit bdf07e6 into wolfSSL:master Nov 7, 2018
@dgarske dgarske deleted the rsa_nonblock branch November 7, 2018 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants