Skip to content
0.2.0-dev Download ZIP
28 lines ·920 B 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 TF_PSA_CRYPTO_CIPHER_INVASIVE_H
15#define TF_PSA_CRYPTO_CIPHER_INVASIVE_H
16
17#include "tf_psa_crypto_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 /* TF_PSA_CRYPTO_CIPHER_INVASIVE_H */