Skip to content
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

Implement high-level interface for X25519 key agreement #213

Closed
2 tasks done
brycx opened this issue Sep 30, 2021 · 0 comments
Closed
2 tasks done

Implement high-level interface for X25519 key agreement #213

brycx opened this issue Sep 30, 2021 · 0 comments
Labels
new feature New feature or request
Milestone

Comments

@brycx
Copy link
Member

brycx commented Sep 30, 2021

This is a follow up to #197. See also #199.

This could be inspired by libsodium's. The high-level should at least accommodate returning a shared secret that is safer to use directly, than that returned in hazardous.

I think it would be a good idea to consider an approach here, that enforces one-time uses of key-pairs for X25519, as in most cases these should be generated freshly for each instantiation of a protocol sessions. So an API that takes ownership of the private key such that it can only be used once.

When implementing the same key-exchange approach as libsodium, it's important to note that because orion uses X25519 compliant with the RFC, then orion will probably reject less public keys than libsodium, because of their blacklist of public X25519 keys. This difference should be mentioned in the documentation.

TODO:

@brycx brycx added the new feature New feature or request label Sep 30, 2021
@brycx brycx added this to the v0.16.1 milestone Oct 4, 2021
@brycx brycx closed this as completed Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant