Searched refs:HW_UNIQUE_KEY_LENGTH (Results 1 – 12 of 12) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | widevine_huk.c | 11 static uint8_t dt_huk[HW_UNIQUE_KEY_LENGTH]; 36 if (len >= HW_UNIQUE_KEY_LENGTH) in init_widevine_huk_dt_data() 37 len = HW_UNIQUE_KEY_LENGTH; in init_widevine_huk_dt_data() 61 memcpy(hwkey->data, dt_huk, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| H A D | stm32mp15_huk.c | 18 #define HUK_NB_OTP (HW_UNIQUE_KEY_LENGTH / sizeof(uint32_t)) 143 if (sz != (HW_UNIQUE_KEY_LENGTH * CHAR_BIT) || offset != 0) in pos_from_dt() 176 size_t len = HW_UNIQUE_KEY_LENGTH; in tee_otp_get_hw_unique_key() 193 static_assert(sizeof(otp_key) == HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 194 memcpy(hwkey->data, otp_key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 202 if (len != HW_UNIQUE_KEY_LENGTH) in tee_otp_get_hw_unique_key() 210 memzero_explicit(otp_key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 215 DHEXDUMP(hwkey->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| H A D | zynqmp_huk.c | 21 uint8_t key[HW_UNIQUE_KEY_LENGTH]; 67 assert(huk_source_size == HW_UNIQUE_KEY_LENGTH); in tee_zynqmp_generate_huk_src() 110 uint8_t src[HW_UNIQUE_KEY_LENGTH] __aligned_csuaes = { 0 }; in tee_otp_get_hw_unique_key() 113 uint8_t sha[HW_UNIQUE_KEY_LENGTH] = { 0 }; in tee_otp_get_hw_unique_key() 221 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| H A D | versal_huk.c | 22 uint8_t key[HW_UNIQUE_KEY_LENGTH]; 333 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/arch/arm/plat-nuvoton/ |
| H A D | main.c | 35 uint8_t data[HW_UNIQUE_KEY_LENGTH]; 73 uint32_t bin[HW_UNIQUE_KEY_LENGTH / sizeof(uint32_t)] = {}; in tee_otp_get_hw_unique_key() 88 HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 94 memcpy(&npcm_hwkey.data[0], bin, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 100 memcpy(hwkey->data, npcm_hwkey.data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/drivers/nvmem/ |
| H A D | nvmem_huk.c | 27 memcpy(hwkey->data, huk, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 43 if (cell->len < HW_UNIQUE_KEY_LENGTH) { in nvmem_huk_probe() 49 if (cell->len > HW_UNIQUE_KEY_LENGTH) in nvmem_huk_probe() 51 cell->len, HW_UNIQUE_KEY_LENGTH); in nvmem_huk_probe()
|
| /optee_os/core/drivers/imx/dcp/ |
| H A D | dcp_huk.c | 25 uint8_t data[HW_UNIQUE_KEY_LENGTH]; 87 memcpy(dcp_huk.data, hwkey->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 91 memcpy(hwkey->data, dcp_huk.data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/arch/arm/plat-rockchip/ |
| H A D | platform_rk3588.c | 177 uint8_t buffer[HW_UNIQUE_KEY_LENGTH] = { }; in generate_huk() 194 memcpy(hwkey->data, buffer, HW_UNIQUE_KEY_LENGTH); in generate_huk() 206 memcpy(buffer, hwkey->data, HW_UNIQUE_KEY_LENGTH); in persist_huk() 243 memcpy(hwkey->data, buffer, HW_UNIQUE_KEY_LENGTH); in read_huk() 284 memcpy(hwkey->data, huk->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/include/kernel/ |
| H A D | tee_common_otp.h | 15 uint8_t data[HW_UNIQUE_KEY_LENGTH];
|
| /optee_os/core/arch/arm/plat-k3/ |
| H A D | main.c | 110 assert(SA2UL_DKEK_KEY_LEN >= HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/drivers/crypto/ele/ |
| H A D | ele.c | 438 static uint8_t key[HW_UNIQUE_KEY_LENGTH]; in tee_otp_get_hw_unique_key() 451 MIN(sizeof(key), (size_t)HW_UNIQUE_KEY_LENGTH)); in tee_otp_get_hw_unique_key()
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_defines.h | 353 #define HW_UNIQUE_KEY_LENGTH (16) macro
|