2023-01-11 08:21:47 +00:00
|
|
|
/*
|
|
|
|
* Declaration of context structures for use with the PSA driver wrapper
|
|
|
|
* interface. This file contains the context structures for key derivation
|
|
|
|
* operations.
|
|
|
|
*
|
|
|
|
* Warning: This file will be auto-generated in the future.
|
|
|
|
*
|
|
|
|
* \note This file may not be included directly. Applications must
|
|
|
|
* include psa/crypto.h.
|
|
|
|
*
|
2023-03-27 14:31:19 +00:00
|
|
|
* \note This header and its content are not part of the Mbed TLS API and
|
2023-01-11 08:21:47 +00:00
|
|
|
* applications must not depend on it. Its main purpose is to define the
|
|
|
|
* multi-part state objects of the PSA drivers included in the cryptographic
|
2023-03-27 14:31:19 +00:00
|
|
|
* library. The definitions of these objects are then used by crypto_struct.h
|
2023-01-11 08:21:47 +00:00
|
|
|
* to define the implementation-defined types of PSA multi-part state objects.
|
|
|
|
*/
|
|
|
|
/* Copyright The Mbed TLS Contributors
|
2023-11-02 19:47:20 +00:00
|
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
2023-01-11 08:21:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
|
|
|
|
#define PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H
|
|
|
|
|
|
|
|
#include "psa/crypto_driver_common.h"
|
|
|
|
|
|
|
|
/* Include the context structure definitions for the Mbed TLS software drivers */
|
|
|
|
#include "psa/crypto_builtin_key_derivation.h"
|
|
|
|
|
|
|
|
/* Include the context structure definitions for those drivers that were
|
|
|
|
* declared during the autogeneration process. */
|
|
|
|
|
|
|
|
typedef union {
|
|
|
|
unsigned dummy; /* Make sure this union is always non-empty */
|
|
|
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \
|
|
|
|
defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \
|
|
|
|
defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)
|
|
|
|
psa_hkdf_key_derivation_t MBEDTLS_PRIVATE(hkdf);
|
|
|
|
#endif
|
|
|
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF) || \
|
|
|
|
defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)
|
|
|
|
psa_tls12_prf_key_derivation_t MBEDTLS_PRIVATE(tls12_prf);
|
|
|
|
#endif
|
|
|
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_ECJPAKE_TO_PMS)
|
|
|
|
psa_tls12_ecjpake_to_pms_t MBEDTLS_PRIVATE(tls12_ecjpake_to_pms);
|
|
|
|
#endif
|
2023-07-31 14:52:33 +00:00
|
|
|
#if defined(PSA_HAVE_SOFT_PBKDF2)
|
2023-05-03 06:27:09 +00:00
|
|
|
psa_pbkdf2_key_derivation_t MBEDTLS_PRIVATE(pbkdf2);
|
|
|
|
#endif
|
2023-01-11 08:21:47 +00:00
|
|
|
} psa_driver_key_derivation_context_t;
|
|
|
|
|
|
|
|
#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H */
|
|
|
|
/* End of automatically generated file. */
|