dalek-cryptography / x25519-dalek

X25519 elliptic curve Diffie-Hellman key exchange in pure-Rust, using curve25519-dalek.
BSD 3-Clause "New" or "Revised" License
328 stars 133 forks source link

Add feature to enable the avx2_backend from curve25519 #38

Closed dignifiedquire closed 5 years ago

dignifiedquire commented 5 years ago

I was wondering if there is a specific reason that is currently not proxied through, like it is in ed25519-dalek.

hdevalence commented 5 years ago

The reason is that the AVX2 backend implements accelerated Edwards curve arithmetic, but X25519 uses Montgomery arithmetic. So enabling it wouldn't have any effect, because it's unused.

dignifiedquire commented 5 years ago

thanks.....I should have realized that, but ETooManyCryptoPrimtives in my head..