neilalexander / jnacl

Pure Java implementation of curve25519, salsa20, hsalsa20, xsalsa20 and poly1305 cryptographic primitives, along with a NaCl "Box" implementation
BSD 2-Clause "Simplified" License
105 stars 34 forks source link

is it possible to share some documents? #15

Open jackzhp opened 6 years ago

jackzhp commented 6 years ago

I am wondering how curve25519 is implemented, but without any notes, I just can not understand it at all. anyone can shed some lights on it?

xtremertx commented 4 years ago

Hi, this whole implementation looks like a direct port from a reference C/C++ impl; I can see many identical calls. And because it is a reference impl. is will be slow, also after quickly reviewing the code of Salsa20, there is still a room to optimize.

You may be better to go with BouncyCastle on Java.