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

classes that support shortened number of parameters #123

Open
andyrozman opened this issue Sep 11, 2022 · 0 comments
Open

classes that support shortened number of parameters #123

andyrozman opened this issue Sep 11, 2022 · 0 comments

Comments

@andyrozman
Copy link

So I was translating application from C# to Java and noticed that dotNet Sodium has helper methods that support encrypting/decrypting with short list of parameters... It would be nice to have something like that in LazySodium...

For example there is class SecretAeadXChaCha20Poly1305, that support e/d with just 4 parameters ( byte[] message, byte[] nonce, byte[] key, byte[] additionalData), which then of course calls the same underlaying Sodium method crypto_aead_xchacha20poly1305_ietf_encrypt...

Are there plans on doing something like that? I converted C# class now to Java, but my knowledge of Sodium/C and Java binding is too little, to know if this will actually work like it should...

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

1 participant