]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/common/ciphers/cipher_locl.h
Handle the renamed command POD files in find-doc-nits
[thirdparty/openssl.git] / providers / common / ciphers / cipher_locl.h
CommitLineData
e1178600
SL
1/*
2 * Copyright 2019 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
4a42e264
SL
10#include "internal/ciphers/ciphercommon.h"
11
12#define CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_START(name) \
13static const OSSL_PARAM name##_known_gettable_ctx_params[] = { \
14 OSSL_PARAM_int(OSSL_CIPHER_PARAM_KEYLEN, NULL), \
15 OSSL_PARAM_int(OSSL_CIPHER_PARAM_IVLEN, NULL), \
16 OSSL_PARAM_int(OSSL_CIPHER_PARAM_PADDING, NULL), \
17 OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_NUM, NULL), \
18 OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_IV, NULL, 0),
19
20#define CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_END(name) \
21 OSSL_PARAM_END \
22}; \
23const OSSL_PARAM * name##_gettable_ctx_params(void) \
24{ \
25 return name##_known_gettable_ctx_params; \
26}
e1178600
SL
27
28size_t fillblock(unsigned char *buf, size_t *buflen, size_t blocksize,
29 const unsigned char **in, size_t *inlen);
30int trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize,
31 const unsigned char **in, size_t *inlen);
32void padblock(unsigned char *buf, size_t *buflen, size_t blocksize);
33int unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize);