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