Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 1 | /* |
Marc Moreno Berengue | ef20272 | 2018-08-10 13:43:43 +0100 | [diff] [blame^] | 2 | * Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
Marc Moreno Berengue | ef20272 | 2018-08-10 13:43:43 +0100 | [diff] [blame^] | 8 | #ifndef __TFM_PLAT_CRYPTO_KEYS_H__ |
| 9 | #define __TFM_PLAT_CRYPTO_KEYS_H__ |
Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 10 | /** |
| 11 | * \note The interfaces defined in this file must be implemented for each |
| 12 | * SoC. |
| 13 | */ |
Marc Moreno Berengue | ef20272 | 2018-08-10 13:43:43 +0100 | [diff] [blame^] | 14 | |
| 15 | #include <stdint.h> |
| 16 | #include "tfm_plat_defs.h" |
| 17 | |
Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 22 | /** |
| 23 | * \brief Gets hardware unique key for encryption |
| 24 | * |
| 25 | * \param[out] key Buf to store the key in |
| 26 | * \param[in] size Size of the buffer |
| 27 | * |
| 28 | * \return Returns error code specified in \ref tfm_plat_errno_t |
| 29 | */ |
Marc Moreno Berengue | ef20272 | 2018-08-10 13:43:43 +0100 | [diff] [blame^] | 30 | enum tfm_plat_errno_t tfm_plat_get_crypto_huk(uint8_t *key, uint32_t size); |
Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame] | 31 | |
| 32 | #ifdef __cplusplus |
| 33 | } |
| 34 | #endif |
| 35 | |
Marc Moreno Berengue | ef20272 | 2018-08-10 13:43:43 +0100 | [diff] [blame^] | 36 | #endif /* __TFM_PLAT_CRYPTO_KEYS_H__ */ |