Mistake on this page?
Report an issue in GitHub or email us
TARGET_TFM_V1_0/include/mbedtls_svc_key_id.h
1 /**
2  * \file mbedtls_svc_key_id.h
3  *
4  * Excerpted from Mbed TLS for internal use by Mbed TLS's PSK key exchange to
5  * interface with generic PSA Crypto implementations.
6  *
7  */
8 /*
9  * Copyright The Mbed TLS Contributors
10  * SPDX-License-Identifier: Apache-2.0
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License"); you may
13  * not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
20  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef MBEDTLS_SVC_KEY_ID_H
26 #define MBEDTLS_SVC_KEY_ID_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef psa_key_id_t mbedtls_svc_key_id_t;
33 
34 #define MBEDTLS_SVC_KEY_ID_INIT ( (psa_key_id_t)0 )
35 
36 /** Check whether a key identifier is null.
37  *
38  * \param key Key identifier.
39  *
40  * \return Non-zero if the key identifier is null, zero otherwise.
41  */
42 static inline int mbedtls_svc_key_id_is_null( mbedtls_svc_key_id_t key )
43 {
44  return( key == 0 );
45 }
46 
47 /**@}*/
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* MBEDTLS_SVC_KEY_ID_H */
uint32_t psa_key_id_t
Encoding of identifiers of persistent keys.
static int mbedtls_svc_key_id_is_null(mbedtls_svc_key_id_t key)
Check whether a key identifier is null.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.