这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dchest
Copy link
Owner

@dchest dchest commented Jun 24, 2014

Before we had signatures, I ported crypto_scalarmult not from TweetNaCl, but from NaCl's reference implementation. Now that we have all needed primitives, which are used in ed25519, we can also replace curve25519 with the port of TweetNaCl's version.

It is around 5x slower. Since the goal of this implementation is not speed, but auditability, it's fine. Instead of stuffing faster implementation into nacl.js, we should create nacl-fast.js, a drop-in replacement of nacl.js with faster implementation of Curve25519 (which is being replaced by this pull request) and faster XSalsa20 (which is already lying somewhere on my hard drive).

@dchest dchest merged commit 883a921 into master Jun 24, 2014
@dchest dchest deleted the shortscalarmult branch June 24, 2014 15:16
@dchest dchest mentioned this pull request Jun 24, 2014
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

Successfully merging this pull request may close these issues.

2 participants