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

Add functions for signatures and message combined #8

Open
KaloyanTanev opened this issue Jun 29, 2021 · 1 comment
Open

Add functions for signatures and message combined #8

KaloyanTanev opened this issue Jun 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@KaloyanTanev
Copy link
Contributor

Add sign(byte[] msg, byte[] privateKey) and verify(byte[] signature, byte[] publicKey) methods. Those will be used on signatures which have the data attached to them.

Useful thread: http://bouncy-castle.1462172.n4.nabble.com/Add-signed-content-to-detached-signatures-td1467150.html#a3387511. However, the solution proposed here uses deprecated methods.

@jasny
Copy link
Member

jasny commented Jun 30, 2021

These functions should be the equivalent of the "combined" functions of libsodium.
https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures#combined-mode

@jasny jasny changed the title Add signatures with message attached Add functions for signatures and message combined Jun 30, 2021
@KaloyanTanev KaloyanTanev added the enhancement New feature or request label Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants