Closed oxarbitrage closed 8 months ago
Apologies on the delayed review on this. I've glanced through it a few times and it seems mostly reasonable. I'd like to do a more detailed review before merging though, and it's been hard to justify prioritizing given the relatively meager performance gains.
Reviewed this again. It seems reasonable enough, and we're about to start making breaking changes anyway so I'd like to get it in before that.
Part of https://github.com/RustCrypto/stream-ciphers/issues/50
Hello, i had been trying to optimize salsa20 for sse2 since a while so i decided to publish a PR even if:
RustCrypto
implementations.With that said, feel free to discard the PR if you think it will not worth doing. Otherwise, i am totally open to suggestions and feedback to make this mergable to the project. Please review carefully if so, i might be missing important stuff. Thanks!
With the current salsa20 implementation i get this output from benches on my current computer:
While with this PR:
This numbers can vary from run to run a bit but the performance increase is consistent.