openjdk 13 + ; SunEC, secp256r1 ecc encryption

2020-05-06 Thread jjk
Dear SMEs 

Do openJDk versions 13 and above support EC encryption? for me secp256r1
curve is enough as it is common amongst several other platforms (non-java).

Is this something natively supported (13+)? I saw various on sunec.jar,
native system.load(..) etc.

Appreciate if someone can also point me to a simple working code for
encryption and decryption.

PS: I want to avoid third party libs such as BC etc.. if possible

Thanks in anticipation



--
Sent from: 
http://openjdk.5641.n7.nabble.com/OpenJDK-Security-Development-f69724.html


Re: openjdk 13 + ; SunEC, secp256r1 ecc encryption

2020-05-06 Thread Anthony Scarpino

On 5/6/20 7:42 AM, jjk wrote:

Dear SMEs

Do openJDk versions 13 and above support EC encryption? for me secp256r1
curve is enough as it is common amongst several other platforms (non-java).

Is this something natively supported (13+)? I saw various on sunec.jar,
native system.load(..) etc.

Appreciate if someone can also point me to a simple working code for
encryption and decryption.

PS: I want to avoid third party libs such as BC etc.. if possible

Thanks in anticipation



--
Sent from: 
http://openjdk.5641.n7.nabble.com/OpenJDK-Security-Development-f69724.html



Hi,

spec256r1 is supported in all current releases.  The native 
implementation is part of the java release.  14 uses a java only 
implementation and not the native implementation.


A quick search for "java sign verify ECDSA" on google will provide you 
many examples on how to use it.


Tony