]> git.baikalelectronics.ru Git - arm-tf.git/commit
TBB: abort boot if BL3-2 cannot be authenticated
authorJuan Castillo <juan.castillo@arm.com>
Mon, 17 Aug 2015 09:43:27 +0000 (10:43 +0100)
committerJuan Castillo <juan.castillo@arm.com>
Thu, 20 Aug 2015 15:44:02 +0000 (16:44 +0100)
commitfedbc0497bb0407fc1d55430eae1938712f1afe8
tree35dd097425d463bd9fdcf2b8c8f3ecec54fb796b
parentaaa0567c38ea6f08d68ce64210800b51a8872c13
TBB: abort boot if BL3-2 cannot be authenticated

BL3-2 image (Secure Payload) is optional. If the image cannot be
loaded a warning message is printed and the boot process continues.
According to the TBBR document, this behaviour should not apply in
case of an authentication error, where the boot process should be
aborted.

This patch modifies the load_auth_image() function to distinguish
between a load error and an authentication error. The caller uses
the return value to abort the boot process or continue.

In case of authentication error, the memory region used to store
the image is wiped clean.

Change-Id: I534391d526d514b2a85981c3dda00de67e0e7992
bl2/bl2_main.c
common/bl_common.c
include/common/bl_common.h