Make ssl3_cbc_digest_record() use the real data_size
authorMatt Caswell <matt@openssl.org>
Thu, 20 Aug 2020 14:48:05 +0000 (15:48 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 3 Sep 2020 08:40:52 +0000 (09:40 +0100)
commite08f86ddb1b4b911da55af6d7f71f00f43529e50
treee8fc109e3ee005bf763f4597301b85b4e72c644c
parent2e2084dac34170fe1f9e93975e5b3cdc30360a9c
Make ssl3_cbc_digest_record() use the real data_size

Previously we passed it the data plus mac size. Now we just pass it the
data size. We already know the mac size.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12732)
providers/implementations/macs/hmac_prov.c
ssl/record/ssl3_record.c
ssl/s3_cbc.c
ssl/ssl_local.h