]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/record/methods/tls_pad.c
Rationalize FIPS sources
[thirdparty/openssl.git] / ssl / record / methods / tls_pad.c
index 7311c8266acecc1d2db7ae1f9eb6975da4e92319..d326a7608a895e469a247228dad7e6996a564e12 100644 (file)
@@ -9,8 +9,10 @@
 
 #include <openssl/rand.h>
 #include <openssl/evp.h>
+
 #include "internal/constant_time.h"
 #include "internal/cryptlib.h"
+#include "internal/ssl3_cbc.h"
 
 /*
  * This file has no dependencies on the rest of libssl because it is shared
@@ -31,23 +33,6 @@ static int ssl3_cbc_copy_mac(size_t *reclen,
                              size_t good,
                              OSSL_LIB_CTX *libctx);
 
-int ssl3_cbc_remove_padding_and_mac(size_t *reclen,
-                                    size_t origreclen,
-                                    unsigned char *recdata,
-                                    unsigned char **mac,
-                                    int *alloced,
-                                    size_t block_size, size_t mac_size,
-                                    OSSL_LIB_CTX *libctx);
-
-int tls1_cbc_remove_padding_and_mac(size_t *reclen,
-                                    size_t origreclen,
-                                    unsigned char *recdata,
-                                    unsigned char **mac,
-                                    int *alloced,
-                                    size_t block_size, size_t mac_size,
-                                    int aead,
-                                    OSSL_LIB_CTX *libctx);
-
 /*-
  * ssl3_cbc_remove_padding removes padding from the decrypted, SSLv3, CBC
  * record in |recdata| by updating |reclen| in constant time. It also extracts