Mbed TLS v3.5.2
Loading...
Searching...
No Matches
crypto_compat.h
Go to the documentation of this file.
1
13/*
14 * Copyright The Mbed TLS Contributors
15 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
16 */
17
18#ifndef PSA_CRYPTO_COMPAT_H
19#define PSA_CRYPTO_COMPAT_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*
26 * To support both openless APIs and psa_open_key() temporarily, define
27 * psa_key_handle_t to be equal to mbedtls_svc_key_id_t. Do not mark the
28 * type and its utility macros and functions deprecated yet. This will be done
29 * in a subsequent phase.
30 */
32
33#define PSA_KEY_HANDLE_INIT MBEDTLS_SVC_KEY_ID_INIT
34
42{
43 return mbedtls_svc_key_id_is_null(handle);
44}
45
107 psa_key_handle_t *handle);
108
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif /* PSA_CRYPTO_COMPAT_H */
mbedtls_svc_key_id_t psa_key_handle_t
psa_status_t psa_open_key(mbedtls_svc_key_id_t key, psa_key_handle_t *handle)
psa_status_t psa_close_key(psa_key_handle_t handle)
static int psa_key_handle_is_null(psa_key_handle_t handle)
int32_t psa_status_t
Function return status.
static int mbedtls_svc_key_id_is_null(mbedtls_svc_key_id_t key)
psa_key_id_t mbedtls_svc_key_id_t