diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2017-12-09 02:52:19 -0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-18 21:30:57 -0600 |
commit | 3ab91fbec937830f184108a244795a2e05cb275c (patch) | |
tree | b98fb42fb1d4d72cc88c669a9bef4a1cf19c4131 /asm | |
parent | 060ff18d4ddcfb87e9aa31fc5eadaf4318bca9bb (diff) | |
download | skiboot-3ab91fbec937830f184108a244795a2e05cb275c.zip skiboot-3ab91fbec937830f184108a244795a2e05cb275c.tar.gz skiboot-3ab91fbec937830f184108a244795a2e05cb275c.tar.bz2 |
libstb/secureboot.c: import sb_verify() from stb.c
This imports the sb_verify() function from stb.c, but now it calls the
CVC verify wrapper in order to verify signed firmware images. The
hw-key-hash and hw-key-hash-size initialized in secureboot.c are passed
to the CVC verify function wrapper.
In secureboot.c, the sb_verify() is renamed to secureboot_verify(). The
sb_verify() calls are updated in a subsequent patch.
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'asm')
-rw-r--r-- | asm/Makefile.inc | 2 | ||||
-rw-r--r-- | asm/cvc_entry.S (renamed from asm/rom_entry.S) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/asm/Makefile.inc b/asm/Makefile.inc index 34e2b28..2828caf 100644 --- a/asm/Makefile.inc +++ b/asm/Makefile.inc @@ -1,7 +1,7 @@ # -*-Makefile-*- SUBDIRS += asm -ASM_OBJS = head.o misc.o kernel-wrapper.o rom_entry.o +ASM_OBJS = head.o misc.o kernel-wrapper.o cvc_entry.o ASM=asm/built-in.o # Add extra dependency to the kernel wrapper diff --git a/asm/rom_entry.S b/asm/cvc_entry.S index 26d1b96..ccca006 100644 --- a/asm/rom_entry.S +++ b/asm/cvc_entry.S @@ -25,10 +25,10 @@ .section .text -.global call_rom_verify +.global __cvc_verify_v1 .global call_rom_SHA512 -call_rom_verify: +__cvc_verify_v1: call_rom_SHA512: call_rom_entry: |