Searched refs:huk (Results 1 – 12 of 12) sorted by relevance
| /optee_os/core/arch/arm/plat-rockchip/ |
| H A D | platform_rk3588.c | 63 static struct tee_hw_unique_key *huk; variable 262 if (huk) in tee_otp_get_hw_unique_key() 265 huk = malloc(sizeof(*huk)); in tee_otp_get_hw_unique_key() 266 if (!huk) { in tee_otp_get_hw_unique_key() 272 res = read_huk(huk); in tee_otp_get_hw_unique_key() 277 res = generate_huk(huk); in tee_otp_get_hw_unique_key() 280 res = persist_huk(huk); in tee_otp_get_hw_unique_key() 284 memcpy(hwkey->data, huk->data, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 285 } else if (huk) { in tee_otp_get_hw_unique_key() 286 free_wipe(huk); in tee_otp_get_hw_unique_key() [all …]
|
| /optee_os/core/drivers/ |
| H A D | zynqmp_huk.c | 23 } huk; variable 121 if (huk.ready) in tee_otp_get_hw_unique_key() 137 sizeof(device_dna), huk.key, in tee_otp_get_hw_unique_key() 138 sizeof(huk.key)); in tee_otp_get_hw_unique_key() 144 huk.ready = true; in tee_otp_get_hw_unique_key() 218 memcpy(huk.key, dst, sizeof(huk.key)); in tee_otp_get_hw_unique_key() 219 huk.ready = true; 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 | 24 } huk; variable 301 if (huk.ready) in tee_otp_get_hw_unique_key() 318 huk.key, sizeof(huk.key))) { in tee_otp_get_hw_unique_key() 331 huk.ready = true; in tee_otp_get_hw_unique_key() 333 memcpy(hwkey->data, huk.key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/scripts/ |
| H A D | derive_rpmb_key.py | 56 def derive_key(huk, cid, compat): argument 70 h = hmac.HMAC(huk, hashes.SHA256()) 82 if args.cid or args.huk or args.compat: 96 if not args.huk: 105 if len(args.huk) != 16: 114 key = derive_key(args.huk, args.cid, args.compat)
|
| /optee_os/core/kernel/ |
| H A D | huk_subkey.c | 66 struct tee_hw_unique_key huk = { }; in __huk_subkey_derive() local 78 res = tee_otp_get_hw_unique_key(&huk); in __huk_subkey_derive() 82 res = crypto_mac_init(ctx, huk.data, sizeof(huk.data)); in __huk_subkey_derive() 104 memzero_explicit(&huk, sizeof(huk)); in __huk_subkey_derive()
|
| /optee_os/core/drivers/nvmem/ |
| H A D | nvmem_huk.c | 18 static uint8_t *huk; variable 22 if (!huk) { in tee_otp_get_hw_unique_key() 27 memcpy(hwkey->data, huk, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key() 55 huk = data; in nvmem_huk_probe()
|
| /optee_os/core/arch/arm/plat-marvell/ |
| H A D | main.c | 106 void *huk = phys_to_virt(PLAT_MARVELL_FUSF_FUSE_BASE + in tee_otp_get_hw_unique_key() local 109 if (!huk) { 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/arch/arm/plat-ti/ |
| H A D | main.c | 72 uint8_t huk[PLAT_HW_UNIQUE_KEY_LENGTH]; member 122 memcpy(plat_huk, plat_boot_args->huk, sizeof(plat_boot_args->huk)); in early_init_huk()
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp157a-dk1.dts | 35 huk_otp: huk-otp@f0 {
|
| H A D | stm32mp157c-dk2.dts | 37 huk_otp: huk-otp@f0 {
|
| H A D | sama5d2.dtsi | 764 huk: huk { label 765 compatible = "optee,nvmem-huk";
|
| H A D | stm32mp157c-ed1.dts | 130 huk_otp: huk-otp@f0 {
|