v2 / thirdparty / mbedtls / library / cipher_invasive.h
28 lines · 23 sloc · 888 bytes · 8de6de946e2fb116f77a4e3ad7e167504dacb82f
Raw
1/**
2 * \file cipher_invasive.h
3 *
4 * \brief Cipher module: interfaces for invasive testing only.
5 *
6 * The interfaces in this file are intended for testing purposes only.
7 * They SHOULD NOT be made available in library integrations except when
8 * building the library for testing.
9 */
10/*
11 * Copyright The Mbed TLS Contributors
12 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
13 */
14#ifndef MBEDTLS_CIPHER_INVASIVE_H
15#define MBEDTLS_CIPHER_INVASIVE_H
16
17#include "common.h"
18
19#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_CIPHER_C)
20
21MBEDTLS_STATIC_TESTABLE int mbedtls_get_pkcs_padding(unsigned char *input,
22 size_t input_len,
23 size_t *data_len,
24 size_t *invalid_padding);
25
26#endif
27
28#endif /* MBEDTLS_CIPHER_INVASIVE_H */
29