Mbed TLS v3.5.0
crypto_driver_contexts_key_derivation.h
Go to the documentation of this file.
1 /*
2  * Declaration of context structures for use with the PSA driver wrapper
3  * interface. This file contains the context structures for key derivation
4  * operations.
5  *
6  * Warning: This file will be auto-generated in the future.
7  *
8  * \note This file may not be included directly. Applications must
9  * include psa/crypto.h.
10  *
11  * \note This header and its content are not part of the Mbed TLS API and
12  * applications must not depend on it. Its main purpose is to define the
13  * multi-part state objects of the PSA drivers included in the cryptographic
14  * library. The definitions of these objects are then used by crypto_struct.h
15  * to define the implementation-defined types of PSA multi-part state objects.
16  */
17 /* Copyright The Mbed TLS Contributors
18  * SPDX-License-Identifier: Apache-2.0
19  *
20  * Licensed under the Apache License, Version 2.0 (the "License"); you may
21  * not use this file except in compliance with the License.
22  * You may obtain a copy of the License at
23  *
24  * http://www.apache.org/licenses/LICENSE-2.0
25  *
26  * Unless required by applicable law or agreed to in writing, software
27  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
28  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29  * See the License for the specific language governing permissions and
30  * limitations under the License.
31  */
32 
33 #ifndef PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
34 #define PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
35 
37 
38 /* Include the context structure definitions for the Mbed TLS software drivers */
40 
41 /* Include the context structure definitions for those drivers that were
42  * declared during the autogeneration process. */
43 
44 typedef union {
45  unsigned dummy; /* Make sure this union is always non-empty */
46 #if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \
47  defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
48  defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
50 #endif
51 #if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF) || \
52  defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)
54 #endif
55 #if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_ECJPAKE_TO_PMS)
57 #endif
58 #if defined(PSA_HAVE_SOFT_PBKDF2)
59  psa_pbkdf2_key_derivation_t MBEDTLS_PRIVATE(pbkdf2);
60 #endif
62 
63 #endif /* PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H */
64 /* End of automatically generated file. */
Definitions for all PSA crypto drivers.
#define MBEDTLS_PRIVATE(member)