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

Finish removing Ring dependency #295

Closed
wants to merge 13 commits into from
Closed

Finish removing Ring dependency #295

wants to merge 13 commits into from

Conversation

sinui0
Copy link
Member

@sinui0 sinui0 commented Aug 8, 2023

This PR finishes removing ring from tls-core and tls-client to support wasm builds. This was relatively straight forward as we only support P256 at the moment. I've verified locally that the tls-client crate now builds for wasm32-unknown-unknown. We will want to add this to our CI.

Changes

  • Replace usage of ring with functional equivalents from RustCrypto (key exchange, signing and hashing).
  • Replace usage of ring constant time slice comparison with subtle
  • Remove Edd25519 and Rsa signing impls
  • Remove some dead code

@sinui0 sinui0 requested a review from themighty1 August 8, 2023 00:58
@@ -1,6 +1,37 @@
// Additional x509/asn1 functions to those provided in webpki/ring.

use ring::io::der;
pub const CONSTRUCTED: u8 = 1 << 5;
pub const CONTEXT_SPECIFIC: u8 = 2 << 6;
Copy link
Member

Choose a reason for hiding this comment

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

did you mean 1 << 6 ?

@heeckhau heeckhau mentioned this pull request Aug 8, 2023
# Conflicts:
#	components/tls/tls-core/Cargo.toml
@sinui0
Copy link
Member Author

sinui0 commented Feb 1, 2024

This is no longer necessary, ring compiles to wasm32-unknown-unknown now

@sinui0 sinui0 closed this Feb 1, 2024
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.

3 participants