evp/e_chacha20_poly1305.c: improve performance for short TLS records.
authorAndy Polyakov <appro@openssl.org>
Wed, 27 Jun 2018 10:16:52 +0000 (12:16 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 29 Jun 2018 10:39:11 +0000 (12:39 +0200)
commita091e212fc55244fe03a4c7db7d8978c5b5014cb
tree074901fc70636fdc669136c3d3735becf49f3863
parent249330de0250bc598d20d383bab37d150cdad239
evp/e_chacha20_poly1305.c: improve performance for short TLS records.

Inputs not longer than 64 bytes are processed ~10% faster, longer
lengths not divisble by 64, e.g. 255, up to ~20%. Unfortunately it's
impossible to measure with apps/speed.c, -aead benchmarks TLS-like
call sequence, but not exact. It took specially crafted code path...

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6597)
crypto/evp/e_chacha20_poly1305.c