QUIC APL, TSERVER: Start using a QUIC_ENGINE object
[openssl.git] / include / internal / ssl3_cbc.h
1 /*
2  * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
3  *
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
8  */
9
10 #include <openssl/evp.h>
11
12 /* tls_pad.c */
13 int ssl3_cbc_remove_padding_and_mac(size_t *reclen,
14                                     size_t origreclen,
15                                     unsigned char *recdata,
16                                     unsigned char **mac,
17                                     int *alloced,
18                                     size_t block_size, size_t mac_size,
19                                     OSSL_LIB_CTX *libctx);
20
21 int tls1_cbc_remove_padding_and_mac(size_t *reclen,
22                                     size_t origreclen,
23                                     unsigned char *recdata,
24                                     unsigned char **mac,
25                                     int *alloced,
26                                     size_t block_size, size_t mac_size,
27                                     int aead,
28                                     OSSL_LIB_CTX *libctx);
29
30 /* ssl3_cbc.c */
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,
34                                   size_t *md_out_size,
35                                   const unsigned char *header,
36                                   const unsigned char *data,
37                                   size_t data_size,
38                                   size_t data_plus_mac_plus_padding_size,
39                                   const unsigned char *mac_secret,
40                                   size_t mac_secret_length, char is_sslv3);