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

Boring and rustcrypto rsa #71

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

rjzak
Copy link
Contributor

@rjzak rjzak commented Jul 26, 2022

Closes #69

  • cargo build selects Boring SSL for the RSA operations as the default
  • cargo build --features rcrypto --no-default-features selects RustCrypto's RSA implementation

Tested and found to work with my branch of Enarx.

@rjzak rjzak force-pushed the boring_and_rustcrypto_rsa branch from c5cfd83 to a01f47b Compare July 26, 2022 19:49
@rjzak rjzak marked this pull request as ready for review July 26, 2022 20:29
@@ -0,0 +1,439 @@
use rsa::pkcs8::{DecodePrivateKey as _, DecodePublicKey as _, EncodePrivateKey as _, EncodePublicKey as _};
use rsa::pkcs1::{DecodeRsaPrivateKey as _, DecodeRsaPublicKey as _, LineEnding};
//use rsa::pem::LineEncoding;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some leftover code :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup... sorry about that! Fixed.

@rjzak rjzak force-pushed the boring_and_rustcrypto_rsa branch from a01f47b to 80b3a00 Compare July 26, 2022 22:49
Signed-off-by: Richard Zak <richard@profian.com>
@rjzak rjzak force-pushed the boring_and_rustcrypto_rsa branch from 80b3a00 to 284ad27 Compare July 26, 2022 23:18
@rjzak rjzak requested a review from jedisct1 August 2, 2022 14:48
@jedisct1 jedisct1 merged commit 53f6d8f into WebAssembly:main Aug 3, 2022
@rjzak rjzak deleted the boring_and_rustcrypto_rsa branch August 3, 2022 13:32
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.

Remove Boring SSL
2 participants