xref: /optee_os/core/include/kernel/tee_common_otp.h (revision 817466cb476de705a8e3dabe1ef165fe27a18c2f)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  */
5 #ifndef TEE_COMMON_OTP_H
6 #define TEE_COMMON_OTP_H
7 
8 #include <stddef.h>
9 #include <stdint.h>
10 #include <string.h>
11 #include <utee_defines.h>
12 
13 struct tee_hw_unique_key {
14 	uint8_t data[HW_UNIQUE_KEY_LENGTH];
15 };
16 
17 void tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey);
18 int tee_otp_get_die_id(uint8_t *buffer, size_t len);
19 
20 #endif /* TEE_COMMON_OTP_H */
21