-
Notifications
You must be signed in to change notification settings - Fork 705
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
X25519 (and/or ECDH in general) with static keys #331
Comments
We do everything we can do to ensure that isn't possible.
Yes, it is. In particular, I explicitly want to make it possible to implement Noise using ring. Basically, we need to create a So, at this point, it's simply a matter of getting the code and tests written. |
To clarify some things:
|
Hi @danburkert, I took a peek at your fork and saw that you started working on this a couple weeks ago. Are you planning to keep working on it? Is there anything I can do to help, beyond the writing of notes in my previous comment above? Thanks! |
Hi @briansmith. Unfortunately I will not have any time soon to wrap it up. The notes you gave are good, and if I get time to revisit in the future I will definitely take them into account, I just can't promise when that would be. |
Understood. Thanks! |
Is there no way to simply create an ec private key from DER/PEM/etc? |
It's coming soon. ECDSA code is already written. X25519 and P-256/P-384 ECDH will follow shortly. |
Depends on #508. |
Hi, @briansmith Introduce a struct name pub struct X22519StaticKeyPair {
private_key: ec::PrivateKey,
public_key: [u8; 32usize],
alg: &'static Algorithm,
} then implement it with the following function:
and some helper function, like the Finally, the place of the Anything I miss? |
I'm interested in this functionality. It seems like #602 implements this. Do you think this will be merged soon? |
Adding my interest for non ethereal Agreement using X25519. Trying to implement whisper systems double ratcheting algorithm and recommended in their docs https://signal.org/docs/specifications/doubleratchet/#recommended-cryptographic-algorithms |
I'll bump this because I am interested too. I'm not happy to see the "premier" crypto library for Rust lack this basic feature for half a decade, especially after multiple MRs appear to implement it. |
@briansmith Is this still worked on?
There have been 2 MRs to this point as far as I can tell which both seem to implement this? |
Hi, while attempting to add ring as a backend to a Noise implementation, I found that ring does not support DH key agreement with static keys. Static DH is required for the protocol. Is static DH support planned? Are there any workarounds in the meantime (perhaps a way to unsafely clone the key?).
The text was updated successfully, but these errors were encountered: