aboutsummaryrefslogtreecommitdiffstats
path: root/plat/qemu/qemu_rotpk.S
diff options
context:
space:
mode:
authorMichalis Pappas <mpappas@fastmail.fm>2017-10-18 09:43:37 +0800
committerMichalis Pappas <mpappas@fastmail.fm>2017-10-25 10:48:58 +0800
commit5cc34b10b0f64faa27901256aed7a26223f072d0 (patch)
tree1eb88ea245ebb9ab7ebbc22dd337dcd551938885 /plat/qemu/qemu_rotpk.S
parentccd0c24cf89cb2195cbb38b6bb0639769afef7c5 (diff)
downloadplatform_external_arm-trusted-firmware-5cc34b10b0f64faa27901256aed7a26223f072d0.tar.gz
platform_external_arm-trusted-firmware-5cc34b10b0f64faa27901256aed7a26223f072d0.tar.bz2
platform_external_arm-trusted-firmware-5cc34b10b0f64faa27901256aed7a26223f072d0.zip
qemu: Add support for Trusted Board Boot
This patch adds support for TBB to qemu. An RSA ROT keypair is generated at build time and is included into BL1/BL2. The key and content certificates are read over semihosting. Fixes ARM-software/tf-issues#526 Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Diffstat (limited to 'plat/qemu/qemu_rotpk.S')
-rw-r--r--plat/qemu/qemu_rotpk.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/plat/qemu/qemu_rotpk.S b/plat/qemu/qemu_rotpk.S
new file mode 100644
index 000000000..5d1b83f40
--- /dev/null
+++ b/plat/qemu/qemu_rotpk.S
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+ .global qemu_rotpk_hash
+ .global qemu_rotpk_hash_end
+qemu_rotpk_hash:
+ /* DER header */
+ .byte 0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48
+ .byte 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20
+ /* SHA256 */
+ .incbin ROTPK_HASH
+qemu_rotpk_hash_end: