Searched refs:plat_huk (Results 1 – 2 of 2) sorted by relevance
27 static uint32_t plat_huk[OTP_DATA_TEE_HUK_SIZE / sizeof(uint32_t)]; variable52 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()65 res = tcc_otp_read_128(OTP_DATA_TEE_HUK_OFFSET, plat_huk); in init_huk()68 if (!crypto_rng_read(plat_huk, OTP_DATA_TEE_HUK_SIZE)) { in init_huk()69 tcc_otp_write_128(OTP_DATA_TEE_HUK_OFFSET, plat_huk); in init_huk()71 plat_huk); in init_huk()
28 static uint8_t plat_huk[PLAT_HW_UNIQUE_KEY_LENGTH]; variable122 memcpy(plat_huk, plat_boot_args->huk, sizeof(plat_boot_args->huk)); in early_init_huk()138 memcpy(&hwkey->data[0], &plat_huk[0], sizeof(hwkey->data)); in tee_otp_get_hw_unique_key()