Home
last modified time | relevance | path

Searched refs:HW_UNIQUE_KEY_LENGTH (Results 1 – 12 of 12) sorted by relevance

/optee_os/core/drivers/
H A Dwidevine_huk.c11 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 Dstm32mp15_huk.c18 #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 Dzynqmp_huk.c21 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 Dversal_huk.c22 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 Dmain.c35 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 Dnvmem_huk.c27 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 Ddcp_huk.c25 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 Dplatform_rk3588.c177 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 Dtee_common_otp.h15 uint8_t data[HW_UNIQUE_KEY_LENGTH];
/optee_os/core/arch/arm/plat-k3/
H A Dmain.c110 assert(SA2UL_DKEK_KEY_LEN >= HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
/optee_os/core/drivers/crypto/ele/
H A Dele.c438 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 Dutee_defines.h353 #define HW_UNIQUE_KEY_LENGTH (16) macro