-
Notifications
You must be signed in to change notification settings - Fork 226
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
Allow passing custom PRNG to generate masks #355
Comments
No need for handshake, no need for TLS, no need for masks... Maybe it's time for me to fork. |
Since the crate is generic over
Everything except masking is already a feature and could be disabled. |
But my main purpose is to optionally remove dependency |
Perhaps we can use the same way as ed25519-dalek... |
If a custom RNG (or an implementation of a new |
I'm interested in this issue because I'd like to use tungstenite in a bare-bones Wasm environment with no browser APIs, so the |
I'm also slightly concerned about the performance hit of using Benching is probably needed. |
It is possible to include a place for RNG state in the appropriate place and accept any
rand_core::RngCore + rand_core::CryptoRng
when creating protocol state. But the amount of work to make this change seems a bit much.In addition, if I use ws without handshake and both server and client agree, masks seem to become useless (since no http is involved). Given that
handshake
is already an optional feature, can we consider making mask an optional feature as well? (This request may be exceeded.)The text was updated successfully, but these errors were encountered: