2019-08-22 09:42:54 +08:00
|
|
|
/*
|
2020-07-16 20:47:04 +08:00
|
|
|
* Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2019-08-22 09:42:54 +08:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
2019-10-04 20:44:42 +08:00
|
|
|
#include "prov/ciphercommon.h"
|
2019-08-26 15:05:08 +08:00
|
|
|
|
2019-08-22 09:42:54 +08:00
|
|
|
void padblock(unsigned char *buf, size_t *buflen, size_t blocksize);
|
|
|
|
int unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize);
|
2020-05-28 00:20:18 +08:00
|
|
|
int tlsunpadblock(OPENSSL_CTX *libctx, unsigned int tlsversion,
|
|
|
|
unsigned char *buf, size_t *buflen, size_t blocksize,
|
|
|
|
unsigned char **mac, int *alloced, size_t macsize, int aead);
|