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

NaCl compatible Ed25519.cs #188

Open
JamesB7 opened this issue Apr 24, 2019 · 1 comment
Open

NaCl compatible Ed25519.cs #188

JamesB7 opened this issue Apr 24, 2019 · 1 comment

Comments

@JamesB7
Copy link

JamesB7 commented Apr 24, 2019

Hello,

Would you please consider adding a parameter to Ed25519.cs's ImplVerify, etc. for NaCl compatibility? It generates different results. I would really like to move over to BouncyCastle for signature verification.

Thank you!

James

@Xor-el
Copy link

Xor-el commented May 1, 2019

@JamesB7 , bouncycastle uses the R + S format for signature verification and generation while Nacl uses the R + M + S format for it's where we know that R.Length = 32 bytes and S.Length is also equal to 32 bytes while M is the message.
You can simply write a intermediate class to convert the Nacl signature format to Bouncy castle's own before passing it to bouncy castle EdDSA class to perform the verification.
Simple as pie.

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