summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-08-20 15:48:05 +0100
committerMatt Caswell <matt@openssl.org>2020-09-03 09:40:52 +0100
commite08f86ddb1b4b911da55af6d7f71f00f43529e50 (patch)
treee8fc109e3ee005bf763f4597301b85b4e72c644c /providers
parent2e2084dac34170fe1f9e93975e5b3cdc30360a9c (diff)
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)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/macs/hmac_prov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/macs/hmac_prov.c b/providers/implementations/macs/hmac_prov.c
index 3376395a17..f6cb544f64 100644
--- a/providers/implementations/macs/hmac_prov.c
+++ b/providers/implementations/macs/hmac_prov.c
@@ -65,7 +65,7 @@ int ssl3_cbc_digest_record(const EVP_MD *md,
size_t *md_out_size,
const unsigned char header[13],
const unsigned char *data,
- size_t data_plus_mac_size,
+ size_t data_size,
size_t data_plus_mac_plus_padding_size,
const unsigned char *mac_secret,
size_t mac_secret_length, char is_sslv3);