tel / saltine

Cryptography that's easy to digest (NaCl/libsodium bindings)
https://github.com/tel/saltine
MIT License
61 stars 29 forks source link

Understanding ScalarMult #10

Open tel opened 11 years ago

tel commented 11 years ago

ScalarMult appears to be a primitive for performing hashed Diffie-Hellman exchanges. That's a really low-level primitive, though. Is it possible to wrap it in a nicer interface?

tel commented 11 years ago

Perhaps using something like pipes to simulate the negotiation?

cartazio commented 11 years ago

or use machines? :)

tel commented 11 years ago

I'm more interested in supporting the pipes infrastructure, though. Either way, this isn't a big deal—I'm just trying to think of places to replace the ScalarMult interface with a more meaningful one. Constant-time group powers aren't important. Defensible HDH is.

On Monday, June 10, 2013 at 1:28 AM, Carter Tazio Schonwald wrote:

or use machines? :)

— Reply to this email directly or view it on GitHub (https://github.com/tel/saltine/issues/10#issuecomment-19181341).

iphydf commented 8 years ago

ScalarMult is also used to derive a PublicKey from a SecretKey (might be nice to implement that in Saltine as well). See https://github.com/iphydf/hstox/blob/ed5b6c86d3232ee3c4a7d656b6b036a3f0b81a36/src/Network/Tox/Crypto/Keypair.hs#L28.