jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.18k stars 1.73k forks source link

Libhydrogen-style N-Variant Key Exchange #991

Closed jfkimmes closed 4 years ago

jfkimmes commented 4 years ago

Does libsodium offer an N-Variant Key Exchange like libhydrogen?

I am aware of the sealed box encryption scheme but to my knowledge that doesn't give the server a way to respond. Is there an easy way to emulate the libhydrogen functionality?

jedisct1 commented 4 years ago

Encrypt a client-generated secret in a sealed box, then use that secret to encrypt the rest of the session.