-
Notifications
You must be signed in to change notification settings - Fork 7
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
Some fixes #21
base: main
Are you sure you want to change the base?
Some fixes #21
Conversation
0c5015e
to
c441c73
Compare
Curious why we use
Have you seen SecretBytesMut? It wraps a BytesMut (ref: this example). |
I have, but as I said the problem is that |
Would it work on Mac? Would it work in WASM and Windows (and do we need it to)? (I don't know the answers to these questions myself, just some things to consider) |
Hmm... I just played around with this for 30 minutes, and you're right - well, the naming is certainly misleading 😅
Mac: ✅ See the full layout here. EDIT:
That's a good question - I'm not sure. Let's sync up on this with the team. It would be good to clearly specify the target operating system(s)/environments we plan to use for |
One thing I don't follow is whether Also this question is probably worth a separate issue filed. |
So it depends on the underlying operating system {CS,}PRNG, why is it important that we seed the CSPRNG? Most CSPRNGs (like the Linux Kernel) offer a function like |
It was important to the authors of |
Agree that reproducibility of shares seems the most likely reason. |
*Box::new
hacksigning_key_bytes
when generating hashesTODO:
Hmac
,ChaCha20Rng
) should be zeroized too - but currently they don't implement the trait. Need to create PRs for the corresponding crates. Probably there are other non-obvious objects that should be zeroized, need to review..zeroize()
calls need to be replaced with zeroized-on-drop containers. The problem is thatsecrecy
seemingly does not support exposing a mutable reference to a secret which we need e.g. inceygen()
. Trying to find a way to work around that.secrecy
? The problem here is that it depends on an externallibsodium
, but provides better zeroization guarantees.