Is it possible to remove `ring` from the native implementation of SubtleCrypto?
The `llrt_crypto` backend is now selectable, but it looks like the native backend still has a `ring` dependency.
- modules/llrt_crypto/src/provider/rust/mod.rs
```rust
use ring::{
pbkdf2,
rand::SystemRandom,
signature::{Ed25519KeyPair, KeyPair, UnparsedPublicKey},
};
```
It seems to be related to `rand`, `pbkdf2` and `ed25519`. If we can switch these to the following RustRandom, RustCrypto or a similar crate, we believe we can eliminate the ring dependency from the native implementation.
https://github.com/rust-random/rand
https://github.com/RustCrypto/password-hashes/tree/master/pbkdf2
https://github.com/dalek-cryptography/curve25519-dalek/tree/main/ed25519-dalek
关闭于 2026-02-07 0 条评论