blob: e82a0a7f99514d5d53ea01d6fdaf14ffa08a4d75 [file] [log] [blame]
David Horstmannd37e0c42025-01-16 16:24:35 +00001/**
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
David Horstmannab7bb572025-03-05 18:05:04 +000021MBEDTLS_STATIC_TESTABLE int mbedtls_get_pkcs_padding(unsigned char *input,
22 size_t input_len,
Gilles Peskine6cb9f352025-07-27 21:22:39 +020023 size_t *data_len,
24 size_t *invalid_padding);
David Horstmannd37e0c42025-01-16 16:24:35 +000025
26#endif
27
28#endif /* MBEDTLS_CIPHER_INVASIVE_H */