CryptoSwift
CryptoSwift copied to clipboard
Added Salsa20 cipher and simplified ChaCha20
Checklist:
- [x] Correct file headers (see CONTRIBUTING.md).
- [x] Formatted with SwiftFormat.
- [x] Tests passed.
Changes proposed in this pull request:
- The Salsa20 algorithm has been added
- The ChaCha20 algorithm implementation is simplified
What is runtime performance difference?
I've got an average difference of 26ms on iOS and 35ms on Mac. Both quicker than the previous implementation.
@rogerxaic By how many percent?
Between 2 and 3 percent if I recall correctly.