RustCrypto / stream-ciphers

Collection of stream cipher algorithms
264 stars 50 forks source link

chacha20: SSE2 autodetection support #270

Closed tarcieri closed 3 years ago

tarcieri commented 3 years ago

i586 targets do not have SSE2 enabled by default.

This commit adds autodetection for SSE2 in addition to the existing autodetection for AVX2, and falls back to a portable implementation if SSE2 is not available.

See discussion here: https://github.com/rust-random/rand/pull/931#issuecomment-907768720