summaryrefslogtreecommitdiffstats
path: root/crypto/async
diff options
context:
space:
mode:
authorarmfazh <armfazh@gmail.com>2018-10-19 08:26:58 +1000
committerPauli <paul.dale@oracle.com>2018-10-19 08:32:44 +1000
commitaa519853be79ae92e6aa8ec34de5d1803d721b00 (patch)
treeac0dcdecc91c511a98152b8bd9c167f9122bb470 /crypto/async
parenta190ea8ad7f2405d1a6245e59481fb6e3d0f60d2 (diff)
Fix tls_cbc_digest_record is slow using SHA-384 and short messages
The formula used for this is now kVarianceBlocks = ((255 + 1 + md_size + md_block_size - 1) / md_block_size) + 1 Notice that md_block_size=64 for SHA256, which results on the magic constant kVarianceBlocks = 6. However, md_block_size=128 for SHA384 leading to kVarianceBlocks = 4. CLA:trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/7342) (cherry picked from commit cb8164b05e3bad5586c2a109bbdbab1ad65a1a6f)
Diffstat (limited to 'crypto/async')
0 files changed, 0 insertions, 0 deletions