acrn-hypervisor/hypervisor/arch/x86
Chen, Gang G fc9ec5d88f hv: Derive decryption key from Seed for Trusty to decrypt attestation keybox
CSE FW uses an AEK (Attestation keybox Encryption Key) to encrypt the keybox
with AES-256-GCM algorithm before sending it to Android/Trusty. This key is
derived from the latest platform Seed by CSE FW with KDF (key derivation function)
HMAC-SHA256. After Trusty retrieves this encrypted keybox over HECI/MEI driver,
Trusty needs the same AEKkey to decrypt it. Hence, before Trusty launches,
Hypervisor derives the same AEK key from Platform Seed with the same algorithm
and the same derivation parameters, then sends this AEK along with Trusty vSeed
to Trusty world memory.

Since Platform Seed is only visible to Hypervisor and it must not be
sent to any guest VM, only Hypervisor can derive this AEK from this
Platform Seed, just like previous per-Trusty virtual Seed derivation.
Please note that Android Attestation Keybox is shared in a single hardware
platform, so all the Trusty instance/world can get the same AEK for
decryption even if there are multiple Android User OS/VMs running
on top of Hypervisor.

v1 --> v2:
	Add detailed description why we need the patch to derive an extra key

v2 --> v3:
	Convert API descriptions to Doxygen

Tracked-On: #1812
Reviewed-by: Bing Zhu <bing.zhu@intel.com>
Reviewed-by: Kai Wang <kai.z.wang@intel.com>
Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
Acked-by: Bing Zhu <bing.zhu@intel.com>
2018-11-20 09:22:37 +08:00
..
configs HV: For MRB, use 0x3E8/IRQ6 as the vuart port base address/IRQ. 2018-11-16 10:24:48 +08:00
guest hv: reset VM ioreqs in reset_vm 2018-11-16 09:14:26 +08:00
assign.c HV: Add vuart port base address/IRQ Kconfig options 2018-11-16 10:24:48 +08:00
cpu_primary.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00
cpu_save_boot_ctx.S HV: save the cs limit field for SOS 2018-11-01 13:11:40 +08:00
cpu_state_tbl.c HV: add px cx data of bxt n3350 SOC 2018-11-09 13:07:53 +08:00
cpu.c hv: fix '(void) missing for discarded return value' 2018-11-15 10:54:42 +08:00
cpuid.c HV:treewide:rename vm data structure 2018-11-05 15:35:49 +08:00
ept.c hv: ept: set snp control when modify 2018-11-09 13:00:51 +08:00
gdt.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
idt.S hv: Leave interrupts disabled during vmexit - ACRN partition mode 2018-08-31 08:48:47 +08:00
io.c hv: PIO emulation handler is attached to I/O port number only 2018-11-19 09:34:34 +08:00
ioapic.c HV: add size check for shell log buffer usage 2018-11-02 09:13:57 +08:00
irq.c hv: fix integer violations 2018-11-14 12:46:34 +08:00
Kconfig HV: Add vuart port base address/IRQ Kconfig options 2018-11-16 10:24:48 +08:00
lapic.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
mmu.c hv: fix 'Expression is not Boolean' 2018-11-08 13:04:11 +08:00
mtrr.c hv: fix integer violations 2018-11-14 12:46:34 +08:00
notify.c Fix to kernel hang in smp_call_function 2018-10-26 13:44:18 +08:00
page.c HV:treewide:rename vm data structure 2018-11-05 15:35:49 +08:00
pagetable.c hv: mmu: replace dynamic memory allocation in memory 2018-11-02 13:15:48 +08:00
pm.c hv: fix '(void) missing for discarded return value' 2018-11-15 10:54:42 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c hv: fix a minor bug of static checks 2018-11-08 09:26:56 +08:00
timer.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
trampoline.S hv: fix branch addressing syntax warning 2018-11-09 13:16:13 +08:00
trusty.c hv: Derive decryption key from Seed for Trusty to decrypt attestation keybox 2018-11-20 09:22:37 +08:00
virq.c HV:treewide:rename vm data structure 2018-11-05 15:35:49 +08:00
vmexit.c hypervisor: use "wbinvd" carefully in RT environment 2018-11-16 10:24:23 +08:00
vmx_asm.S fix spec_ctrl msr save/restore 2018-08-16 16:24:13 +08:00
vmx.c vmx: tiny fix for MACRO name and print format 2018-11-16 15:30:20 +08:00
vtd.c hypervisor: use "wbinvd" carefully in RT environment 2018-11-16 10:24:23 +08:00
wakeup.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00