Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use scalar ALU and vector ALU together for chacha20 stream cipher
Fixes #24070 Use scalar ALU for 1 chacha block with rvv ALU simultaneously. The tail elements(non-multiple of block length) will be handled by the scalar logic. Use rvv path if the input length > chacha_block_size. And we have about 1.2x improvement comparing with the original code. Reviewed-by: Hongren Zheng <i@zenithal.me> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #24097) (cherry picked from commit da8b630)
- Loading branch information