Home
last modified time | relevance | path

Searched refs:hwkey (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/drivers/imx/dcp/
A Ddcp_huk.c35 static TEE_Result dcp_generate_huk(struct tee_hw_unique_key *hwkey) in dcp_generate_huk() argument
59 return dcp_cmac(&init, content, DCP_AES128_BLOCK_SIZE, hwkey->data); in dcp_generate_huk()
62 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
66 if (!hwkey || !hwkey->data) { in tee_otp_get_hw_unique_key()
78 ret = dcp_generate_huk(hwkey); in tee_otp_get_hw_unique_key()
82 memcpy(dcp_huk.data, hwkey->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
86 memcpy(hwkey->data, dcp_huk.data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
/optee_os/core/arch/arm/plat-marvell/
A Dmain.c119 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
123 MEM_AREA_IO_SEC, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
129 memcpy(&hwkey->data[0], huk, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
/optee_os/core/drivers/crypto/caam/blob/
A Dcaam_blob.c73 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
75 COMPILE_TIME_ASSERT(sizeof(hwkey->data) <= sizeof(stored_key)); in tee_otp_get_hw_unique_key()
80 memcpy(&hwkey->data, &stored_key, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
/optee_os/core/arch/arm/kernel/
A Dotp_stubs.c20 __weak TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
22 memset(&hwkey->data[0], 0, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
/optee_os/core/arch/arm/plat-ti/
A Dmain.c138 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
140 memcpy(&hwkey->data[0], &plat_huk[0], sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
/optee_os/core/arch/arm/plat-zynqmp/
A Dmain.c108 struct tee_hw_unique_key hwkey = { }; in plat_rpmb_key_is_ready() local
111 if (tee_otp_get_hw_unique_key(&hwkey)) in plat_rpmb_key_is_ready()
/optee_os/core/drivers/
A Dzynqmp_huk.c23 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument
118 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
/optee_os/core/include/kernel/
A Dtee_common_otp.h18 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey);

Completed in 6 milliseconds