1

For academical purposes, I am looking for a possibility to implement ElGamal with Elliptic Curves (for encryption and decryption) in Java. I would like to know if this is possible by using only the Java standard library or is this only possible by using third party libraries?

For this problem, all I have found were threads that are at least 5 years old. My hope is that something has changed since then.

aslanj
  • 71
  • 6
  • Check [`BouncyCastle`](https://www.bouncycastle.org/specifications.html) - point 5.4 – Michał Krzywański Sep 28 '19 at 12:20
  • Do you know if there is a good documentation of how to implement it? I can see here that the package contains an implementation but I can't find any way how to do this. – aslanj Sep 29 '19 at 15:28
  • Do you want to create a new implementation yourself? Or use one already implemented? I mean - for academic (learning) purposes you can create yourself an implementation using standard Java tools, but your question doesn't contain any question. What do you have problem with exactly? (you can see the source codes of the BouncyCastle too) – gusto2 Sep 30 '19 at 08:49
  • My goal is to encrypt a message with AES and to encrypt the secret key with EC El Gamal. I have already initialized ECElGamalEncryptor and I encrypted an ECPoint successfully. It's just that I don't know how to encrypt the AES secret Key using ECElGamalEncryptor. – aslanj Oct 03 '19 at 16:25
  • This question would probably better received if you focus on encrypting (or rather, encoding) the AES key and by showing your current effort performing ElGamal encryption. – Maarten Bodewes Oct 05 '19 at 00:40

0 Answers0