-
Notifications
You must be signed in to change notification settings - Fork 8
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
Let rust and node handshake #1
Comments
The README of noise-protocol states the following:
|
I hackily replaced the x25519 DH calculation in snow with crypto_kx_* from sodiumoxide and again, it works between rust and rust but not rust and node/noise-protocol. Hm. |
I'm trying the following, yet I'm not sure what should be the values for Key to initiate the XSalsa20 stream: It compiles, but I didn't even try to run as the keys are dummy values so far. |
I managed to get this to work 😅 still not with the released versions, but it works! |
This was fixed quite a while ago |
The handshake does not work at the moment. See this issue in datrs/hypercore for a high-level overview.
This issue is only concerned with the handshake. I managed to track down where exactly the handshake fails:
It's always the client (initiator) that crashes. And both in Rust and in Node it happens at the same place. It happens when receiving the S token and then calling into the SymetricState and its
DecryptAndHash
function. There, the cipher'sDecryptWithAd
function is called, and this decryption fails.So - either the input parameters to the decrypt function are different, or the XChaCha20 impls differ.
The text was updated successfully, but these errors were encountered: