Split from bug 1584.
We need to investigate if we can boost performance of OpenSSH on multi-core systems by multi-threading the AES CTR handling. One implementation of that is done here:
There are some hurdles though:
- It bypasses OpenSSL's EVP, which means that we won't get AES-NI (see bug 3002) and similar things. We might lose more than we gain.
- Modern OpenSSH prefers ChaCha20 over AES.
- The server might want other ciphers or chaining methods, even though it is not OpenSSH's default.
If we want to use OpenMP, then bug 5615 needs to be fixed as well.