Path: blob/master/thirdparty/mbedtls/include/psa/crypto_driver_contexts_key_derivation.h
9904 views
/*1* Declaration of context structures for use with the PSA driver wrapper2* interface. This file contains the context structures for key derivation3* operations.4*5* Warning: This file will be auto-generated in the future.6*7* \note This file may not be included directly. Applications must8* include psa/crypto.h.9*10* \note This header and its content are not part of the Mbed TLS API and11* applications must not depend on it. Its main purpose is to define the12* multi-part state objects of the PSA drivers included in the cryptographic13* library. The definitions of these objects are then used by crypto_struct.h14* to define the implementation-defined types of PSA multi-part state objects.15*/16/* Copyright The Mbed TLS Contributors17* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later18*/1920#ifndef PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H21#define PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H2223#include "psa/crypto_driver_common.h"2425/* Include the context structure definitions for the Mbed TLS software drivers */26#include "psa/crypto_builtin_key_derivation.h"2728/* Include the context structure definitions for those drivers that were29* declared during the autogeneration process. */3031typedef union {32unsigned dummy; /* Make sure this union is always non-empty */33#if defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF) || \34defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXTRACT) || \35defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF_EXPAND)36psa_hkdf_key_derivation_t MBEDTLS_PRIVATE(hkdf);37#endif38#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF) || \39defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS)40psa_tls12_prf_key_derivation_t MBEDTLS_PRIVATE(tls12_prf);41#endif42#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_ECJPAKE_TO_PMS)43psa_tls12_ecjpake_to_pms_t MBEDTLS_PRIVATE(tls12_ecjpake_to_pms);44#endif45#if defined(PSA_HAVE_SOFT_PBKDF2)46psa_pbkdf2_key_derivation_t MBEDTLS_PRIVATE(pbkdf2);47#endif48} psa_driver_key_derivation_context_t;4950#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_KEY_DERIVATION_H */51/* End of automatically generated file. */525354