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 OR GPL-2.0-or-later
19 */
20
21#ifndef PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
22#define PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
23
24#include "psa/crypto_driver_common.h"
25
26/* Include the context structure definitions for the Mbed TLS software drivers */
27#include "psa/crypto_builtin_key_derivation.h"
28
29/* Include the context structure definitions for those drivers that were
30 * declared during the autogeneration process. */
31
32typedef union {
33    unsigned dummy; /* Make sure this union is always non-empty */
34#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \
35    defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
36    defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
37    psa_hkdf_key_derivation_t MBEDTLS_PRIVATE(hkdf);
38#endif
39#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF) || \
40    defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)
41    psa_tls12_prf_key_derivation_t MBEDTLS_PRIVATE(tls12_prf);
42#endif
43#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_ECJPAKE_TO_PMS)
44    psa_tls12_ecjpake_to_pms_t MBEDTLS_PRIVATE(tls12_ecjpake_to_pms);
45#endif
46#if defined(PSA_HAVE_SOFT_PBKDF2)
47    psa_pbkdf2_key_derivation_t MBEDTLS_PRIVATE(pbkdf2);
48#endif
49} psa_driver_key_derivation_context_t;
50
51#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H */
52/* End of automatically generated file. */
53