Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 1 | /* |
Antonio de Angelis | 377a155 | 2018-11-22 17:02:40 +0000 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 7 | /** |
| 8 | * \file psa_crypto_platform.h |
| 9 | * |
| 10 | * \brief PSA cryptography module: platform definitions |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 11 | * |
Antonio de Angelis | 377a155 | 2018-11-22 17:02:40 +0000 | [diff] [blame] | 12 | * \note This file may not be included directly. Applications must |
| 13 | * include psa/crypto.h. |
| 14 | * |
| 15 | * This file contains platform-dependent type definitions. |
| 16 | * |
| 17 | * In implementations with isolation between the application and the |
| 18 | * cryptography module, implementers should take care to ensure that |
| 19 | * the definitions that are exposed to applications match what the |
| 20 | * module implements. |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 21 | */ |
| 22 | |
Antonio de Angelis | 377a155 | 2018-11-22 17:02:40 +0000 | [diff] [blame] | 23 | #ifndef PSA_CRYPTO_PLATFORM_H |
| 24 | #define PSA_CRYPTO_PLATFORM_H |
| 25 | |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 26 | /* PSA requires several types which C99 provides in stdint.h. */ |
| 27 | #include <stdint.h> |
| 28 | |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame] | 29 | /* Integral type representing a key slot number. */ |
| 30 | typedef uint16_t psa_key_slot_t; |
| 31 | |
Antonio de Angelis | 377a155 | 2018-11-22 17:02:40 +0000 | [diff] [blame] | 32 | #endif /* PSA_CRYPTO_PLATFORM_H */ |