TBB: switch to the new authentication framework
This patch modifies the Trusted Board Boot implementation to use
the new authentication framework, making use of the authentication
module, the cryto module and the image parser module to
authenticate the images in the Chain of Trust.

A new function 'load_auth_image()' has been implemented. When TBB
is enabled, this function will call the authentication module to
authenticate parent images following the CoT up to the root of
trust to finally load and authenticate the requested image.

The platform is responsible for picking up the right makefiles to
build the corresponding cryptographic and image parser libraries.
ARM platforms use the mbedTLS based libraries.

The platform may also specify what key algorithm should be used
to sign the certificates. This is done by declaring the 'KEY_ALG'
variable in the platform makefile. FVP and Juno use ECDSA keys.

On ARM platforms, BL2 and BL1-RW regions have been increased 4KB
each to accommodate the ECDSA code.

REMOVED BUILD OPTIONS:

  * 'AUTH_MOD'

Change-Id: I47d436589fc213a39edf5f5297bbd955f15ae867
1 parent ccbf890 commit 1779ba6b97fbff87290f164c7c78559329173e02
@Juan Castillo Juan Castillo authored on 19 May 2015
Showing 11 changed files
View
Makefile
View
bl1/bl1_main.c
View
bl2/bl2_main.c
View
common/auth.c 100644 → 0
View
common/bl_common.c
View
docs/user-guide.md
View
include/common/auth.h 100644 → 0
View
include/common/bl_common.h
View
include/plat/arm/common/arm_def.h
View
plat/arm/board/juno/platform.mk
View
plat/arm/common/arm_common.mk