David Horstmann | d37e0c4 | 2025-01-16 16:24:35 +0000 | [diff] [blame] | 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 | |
David Horstmann | ab7bb57 | 2025-03-05 18:05:04 +0000 | [diff] [blame^] | 21 | MBEDTLS_STATIC_TESTABLE int mbedtls_get_pkcs_padding(unsigned char *input, |
| 22 | size_t input_len, |
| 23 | size_t *data_len); |
David Horstmann | d37e0c4 | 2025-01-16 16:24:35 +0000 | [diff] [blame] | 24 | |
| 25 | #endif |
| 26 | |
| 27 | #endif /* MBEDTLS_CIPHER_INVASIVE_H */ |