Skip to content

Ephemeral Key Not Found in Noise Protocol Handshake Process #2905

Closed Answered by mxinden
normanade asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @normanade,

Thanks for raising this question.

The call to send_empty does not send an overall empty Noise message, but instead the first Noise message of the XX handshake with an empty additional user payload.

send_empty(&mut state).await?;

write_empty will result in a call to HandshakeState::write_message which will write both the Noise handshake payload and the (here empty) user payload.

Let me know in case the above makes sense.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@normanade
Comment options

Answer selected by normanade
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants