2 * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include <openssl/evp.h>
13 int ssl3_cbc_remove_padding_and_mac(size_t *reclen,
15 unsigned char *recdata,
18 size_t block_size, size_t mac_size,
19 OSSL_LIB_CTX *libctx);
21 int tls1_cbc_remove_padding_and_mac(size_t *reclen,
23 unsigned char *recdata,
26 size_t block_size, size_t mac_size,
28 OSSL_LIB_CTX *libctx);
31 __owur char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx);
32 __owur int ssl3_cbc_digest_record(const EVP_MD *md,
33 unsigned char *md_out,
35 const unsigned char *header,
36 const unsigned char *data,
38 size_t data_plus_mac_plus_padding_size,
39 const unsigned char *mac_secret,
40 size_t mac_secret_length, char is_sslv3);