| /optee_os/core/drivers/imx/dcp/ |
| H 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/core/arch/arm/plat-rockchip/ |
| H A D | platform_rk3588.c | 174 static TEE_Result generate_huk(struct tee_hw_unique_key *hwkey) in generate_huk() argument 194 memcpy(hwkey->data, buffer, HW_UNIQUE_KEY_LENGTH); in generate_huk() 199 static TEE_Result persist_huk(struct tee_hw_unique_key *hwkey) in persist_huk() argument 204 static_assert(sizeof(buffer) == sizeof(hwkey->data)); in persist_huk() 206 memcpy(buffer, hwkey->data, HW_UNIQUE_KEY_LENGTH); in persist_huk() 218 static TEE_Result read_huk(struct tee_hw_unique_key *hwkey) in read_huk() argument 225 static_assert(sizeof(buffer) == sizeof(hwkey->data)); in read_huk() 243 memcpy(hwkey->data, buffer, HW_UNIQUE_KEY_LENGTH); in read_huk() 252 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 256 if (!hwkey) in tee_otp_get_hw_unique_key() [all …]
|
| /optee_os/core/arch/riscv/plat-spike/ |
| H 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/core/arch/arm/plat-marvell/ |
| H A D | main.c | 104 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 108 MEM_AREA_IO_SEC, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key() 114 memcpy(&hwkey->data[0], huk, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/kernel/ |
| H A D | otp_stubs.c | 22 __weak TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 24 memset(&hwkey->data[0], 0, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/drivers/crypto/caam/blob/ |
| H 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/core/arch/arm/plat-telechips/ |
| H A D | main.c | 50 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 52 static_assert(sizeof(plat_huk) == sizeof(hwkey->data)); in tee_otp_get_hw_unique_key() 57 memcpy(hwkey->data, plat_huk, OTP_DATA_TEE_HUK_SIZE); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/arch/arm/plat-k3/ |
| H A D | main.c | 105 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[0], dkek, sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/drivers/ |
| H A D | widevine_huk.c | 49 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 61 memcpy(hwkey->data, dt_huk, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| H A D | stm32mp15_huk.c | 172 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 194 memcpy(hwkey->data, otp_key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 200 ret = aes_gcm_encrypt_uid((uint8_t *)otp_key, len, hwkey->data, 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 | 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()
|
| H 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/core/drivers/nvmem/ |
| H A D | nvmem_huk.c | 20 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 27 memcpy(hwkey->data, huk, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/arch/arm/plat-zynqmp/ |
| H A D | main.c | 94 struct tee_hw_unique_key hwkey = { }; in plat_rpmb_key_is_ready() local 97 if (tee_otp_get_hw_unique_key(&hwkey)) in plat_rpmb_key_is_ready()
|
| /optee_os/core/arch/arm/plat-nuvoton/ |
| H A D | main.c | 69 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 100 memcpy(hwkey->data, npcm_hwkey.data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/arch/arm/plat-ti/ |
| H A D | main.c | 136 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 138 memcpy(&hwkey->data[0], &plat_huk[0], sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/include/kernel/ |
| H A D | tee_common_otp.h | 18 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey);
|
| /optee_os/core/drivers/crypto/ele/ |
| H A D | ele.c | 435 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) in tee_otp_get_hw_unique_key() argument 450 memcpy(hwkey->data, key, in tee_otp_get_hw_unique_key()
|