You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
There is no Q&A section so I hope it is OK to ask here:
I am trying to send message securely over radio channel in my application.
It will be a single client and server.
I decided to go with ChaCha20Poly1305. The example is working fine.
Initially I am generating the key with ChaCha20Poly1305::generate_key and storing it in client and server securely.
Now my question: is it secure to use it like this:
Client initiates connection and ask a server for one-time generated nonce
Server is generating the nonce and sending it to the client
Client is encrypting message with known key and nonce and sending back to the server
Server is decrypting message with known key and a nonce
One of the goal is to prevent replay attacks and I believe that the nonce generation is OK for this.
The text was updated successfully, but these errors were encountered:
Hi,
There is no Q&A section so I hope it is OK to ask here:
I am trying to send message securely over radio channel in my application.
It will be a single client and server.
I decided to go with ChaCha20Poly1305. The example is working fine.
Initially I am generating the key with
ChaCha20Poly1305::generate_key
and storing it in client and server securely.Now my question: is it secure to use it like this:
One of the goal is to prevent replay attacks and I believe that the nonce generation is OK for this.
The text was updated successfully, but these errors were encountered: