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

EC encryption and decryption #118

Open
tjcampanella opened this issue Jul 10, 2021 · 9 comments
Open

EC encryption and decryption #118

tjcampanella opened this issue Jul 10, 2021 · 9 comments

Comments

@tjcampanella
Copy link

Is there any EC engine for encrypting data with elliptic curve keys? I couldn’t find anything in the api reference. Thanks for any help.

@AKushWarrior
Copy link
Contributor

@tjcampanella
Copy link
Author

@AKushWarrior I don’t know if I am missing something, but I don’t see any way to encrypt data with it. Just ways to get the keys.

@AKushWarrior
Copy link
Contributor

Oh, yeah. This was done before I joined the project, so I'm not the most familiar.

It looks like the BouncyCastle engine is split across a bunch of files, but the entry point is https://www.github.com/bcgit/bc-java/tree/master/core%2Fsrc%2Fmain%2Fjava%2Forg%2Fbouncycastle%2Fcrypto%2Fec%2FECElGamalEncryptor.java

@tjcampanella
Copy link
Author

Oh ok so this isn’t yet implemented for pointy castle. Thank you. I will look into implementing it myself.

@AKushWarrior
Copy link
Contributor

AKushWarrior commented Jul 10, 2021

If you do, submit a PR! I have a feeling a lot of people would want/need this work.

I'll also use this issue as tracking if I get around to implementing this.

@tjcampanella
Copy link
Author

I just forked a package I found doing this and I updated it for null safety and such. Would you mind taking a look and seeing what you think: https://github.com/tjcampanella/secp256k1Cipher.

@licy183
Copy link
Contributor

licy183 commented Aug 6, 2021

I just submit a pull request #127. Maybe it helps.

@AKushWarrior
Copy link
Contributor

@mwcw I reviewed and this looks merge-ready to me.

@mwcw
Copy link
Collaborator

mwcw commented Aug 12, 2021

Yes, sorry about the delay.

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

4 participants