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

Exposing more of libsodium high-level APIs #12

Open
soapdog opened this issue Sep 3, 2020 · 2 comments
Open

Exposing more of libsodium high-level APIs #12

soapdog opened this issue Sep 3, 2020 · 2 comments

Comments

@soapdog
Copy link

soapdog commented Sep 3, 2020

Hi,

I'm working with the Secure Scuttlebutt protocol which makes heavy use of many high-level libsodium APIs. I noticed that this package is not exposing sealed and secret boxes and other features from that library.

I don't know if the maintainers of this package are interested in such features or if I should work on creating a separate sodium package. I decided to check here if a PR for such features is OK before I start coding anything.

@rmculpepper
Copy link
Owner

Thanks for the message. Yes, I would be happy with adding support for libsodium APIs.

I glanced over the page you linked to, and the missing features that I noticed were sealed boxes, secret boxes, and conversion from ed25519 (signing) keys to curve25519 (DH) keys. Are there any others needed?

Here are my thoughts on implementation:

  • The sealed box operations can be added as methods of sodium-x25519-key%.
  • Conversion of ed25519 keys to curve25519 keys can be done with a method on sodium-ed25519-key%.
  • The secretbox construction is like a cipher (but not a full AEAD cipher, sadly, since it doesn't allow additionally authenticated data).

I've created a branch b-sodium-api with a partial implementation.

@soapdog
Copy link
Author

soapdog commented Sep 4, 2020

this is fantastic @rmculpepper. I will fetch that branch and start studying it so that I can help. Thanks a lot for helping me out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants