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