/optee_os-3.20.0/core/drivers/imx/dcp/ |
A D | dcp_huk.c | 35 static TEE_Result dcp_generate_huk(struct tee_hw_unique_key *hwkey) in dcp_generate_huk() argument 60 res = dcp_cmac(&init, content, DCP_AES128_BLOCK_SIZE, hwkey->data); in dcp_generate_huk() 67 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 71 if (!hwkey) { in tee_otp_get_hw_unique_key() 83 ret = dcp_generate_huk(hwkey); in tee_otp_get_hw_unique_key() 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-3.20.0/core/arch/riscv/plat-spike/ |
A D | main.c | 25 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 27 memset(&hwkey->data[0], 0, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
/optee_os-3.20.0/core/kernel/ |
A D | otp_stubs.c | 20 __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-3.20.0/core/arch/arm/plat-marvell/ |
A D | main.c | 113 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 117 MEM_AREA_IO_SEC, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key() 123 memcpy(&hwkey->data[0], huk, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
/optee_os-3.20.0/core/drivers/crypto/caam/blob/ |
A D | caam_blob.c | 73 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-3.20.0/core/arch/arm/plat-k3/ |
A D | main.c | 78 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 91 memcpy(&hwkey->data[0], dkek, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
/optee_os-3.20.0/core/drivers/ |
A D | stm32mp15_huk.c | 125 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 156 memcpy(hwkey->data, otp_key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 162 ret = aes_gcm_encrypt_uid((uint8_t *)otp_key, len, hwkey->data, in tee_otp_get_hw_unique_key() 177 DHEXDUMP(hwkey->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
A D | zynqmp_huk.c | 106 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 221 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
A D | versal_huk.c | 294 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 333 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
/optee_os-3.20.0/core/arch/arm/plat-zynqmp/ |
A D | main.c | 103 struct tee_hw_unique_key hwkey = { }; in plat_rpmb_key_is_ready() local 106 if (tee_otp_get_hw_unique_key(&hwkey)) in plat_rpmb_key_is_ready()
|
/optee_os-3.20.0/core/arch/arm/plat-ti/ |
A D | main.c | 128 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 130 memcpy(&hwkey->data[0], &plat_huk[0], sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
/optee_os-3.20.0/core/include/kernel/ |
A D | tee_common_otp.h | 18 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey);
|