Skip to content
0.2.0-dev Download ZIP
54 lines ·2.1 KB Raw
1/**
2 * \file crypto_driver_contexts_key_derivation.h
3 *
4 * \brief Declaration of context structures for use with the PSA driver wrapper
5 * interface. This file contains the context structures for key derivation
6 * operations.
7 *
8 * \warning This file will be auto-generated in the future.
9 *
10 * \note This file may not be included directly. Applications must
11 * include psa/crypto.h.
12 *
13 * \note This header and its content are not part of the Mbed TLS API and
14 * applications must not depend on it. Its main purpose is to define the
15 * multi-part state objects of the PSA drivers included in the cryptographic
16 * library. The definitions of these objects are then used by crypto_struct.h
17 * to define the implementation-defined types of PSA multi-part state objects.
18 */
19/* Copyright The Mbed TLS Contributors
20 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 */
22
23#ifndef PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
24#define PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
25
26#include "psa/crypto_driver_common.h"
27
28/* Include the context structure definitions for the Mbed TLS software drivers */
29#include "mbedtls/private/crypto_builtin_key_derivation.h"
30
31/* Include the context structure definitions for those drivers that were
32 * declared during the autogeneration process. */
33
34typedef union {
35 unsigned dummy; /* Make sure this union is always non-empty */
36#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \
37 defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
38 defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
39 psa_hkdf_key_derivation_t MBEDTLS_PRIVATE(hkdf);
40#endif
41#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF) || \
42 defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)
43 psa_tls12_prf_key_derivation_t MBEDTLS_PRIVATE(tls12_prf);
44#endif
45#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_ECJPAKE_TO_PMS)
46 psa_tls12_ecjpake_to_pms_t MBEDTLS_PRIVATE(tls12_ecjpake_to_pms);
47#endif
48#if defined(PSA_HAVE_SOFT_PBKDF2)
49 psa_pbkdf2_key_derivation_t MBEDTLS_PRIVATE(pbkdf2);
50#endif
51} psa_driver_key_derivation_context_t;
52
53#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H */
54/* End of automatically generated file. */