Improve small block cipher performance
authorKurt Roeckx <kurt@roeckx.be>
Sun, 16 Feb 2020 13:44:06 +0000 (14:44 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 8 Mar 2020 21:41:38 +0000 (22:41 +0100)
commitc339c702f6043fabd09904044f967e71629bc40f
tree2e04aa7eb4f7a7bfad4c2d9e1555505aa0e973b8
parentd462b5ff21e9fcdef98447c8f8d8c694b1e79602
Improve small block cipher performance

Avoid function calls we don't need to do.

In 1.1.1 we have:
aes-128-cbc     572267.80k   681197.08k   715430.74k   720508.59k   722359.64k   723004.07k

Current master:
aes-128-cbc     460663.70k   631125.66k   701283.58k   719794.52k   724732.59k   726668.63k

new:
aes-128-cbc     582057.64k   684288.62k   715721.90k   724856.15k   717578.24k   727176.53k

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11102)
providers/implementations/ciphers/cipher_aes_ocb.c
providers/implementations/ciphers/ciphercommon.c
providers/implementations/ciphers/ciphercommon_block.c