Platform Security Architecture — cryptography and keystore interface  beta 2 — 2019-02-22
crypto_types.h
Go to the documentation of this file.
1 
16 /*
17  * Copyright (C) 2018, ARM Limited, All Rights Reserved
18  * SPDX-License-Identifier: Apache-2.0
19  *
20  * Licensed under the Apache License, Version 2.0 (the "License"); you may
21  * not use this file except in compliance with the License.
22  * You may obtain a copy of the License at
23  *
24  * http://www.apache.org/licenses/LICENSE-2.0
25  *
26  * Unless required by applicable law or agreed to in writing, software
27  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
28  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29  * See the License for the specific language governing permissions and
30  * limitations under the License.
31  *
32  * This file is part of mbed TLS (https://tls.mbed.org)
33  */
34 
35 #ifndef PSA_CRYPTO_TYPES_H
36 #define PSA_CRYPTO_TYPES_H
37 
38 #include <stdint.h>
39 
51 typedef int32_t psa_status_t;
52 
61 typedef uint32_t psa_key_type_t;
62 
64 typedef uint16_t psa_ecc_curve_t;
65 
74 typedef uint32_t psa_algorithm_t;
75 
84 typedef uint32_t psa_key_lifetime_t;
85 
88 typedef uint32_t psa_key_id_t;
89 
97 typedef uint32_t psa_key_usage_t;
98 
106 typedef uint16_t psa_key_derivation_step_t;
107 
110 #endif /* PSA_CRYPTO_TYPES_H */
uint16_t psa_ecc_curve_t
Definition: crypto_types.h:64
uint16_t psa_key_derivation_step_t
Encoding of the step of a key derivation.
Definition: crypto_types.h:106
uint32_t psa_key_id_t
Definition: crypto_types.h:88
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Definition: crypto_types.h:74
uint32_t psa_key_usage_t
Encoding of permitted usage on a key.
Definition: crypto_types.h:97
uint32_t psa_key_type_t
Encoding of a key type.
Definition: crypto_types.h:61
uint32_t psa_key_lifetime_t
Definition: crypto_types.h:84
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:51