]> git.baikalelectronics.ru Git - arm-tf.git/commit
dualroot: add chain of trust for secure partitions
authorManish Pandey <manish.pandey2@arm.com>
Wed, 27 May 2020 21:40:10 +0000 (22:40 +0100)
committerManish Pandey <manish.pandey2@arm.com>
Tue, 9 Jun 2020 15:22:26 +0000 (16:22 +0100)
commit44f1aa8efe627e578c38fbc0623b083223109342
treedce088ceefdde4d9bbfba72135535306607fd177
parent07c4447588ed53b526563d0a9f61e401d24d0952
dualroot: add chain of trust for secure partitions

A new certificate "sip-sp-cert" has been added for Silicon Provider(SiP)
owned Secure Partitions(SP). A similar support for Platform owned SP can
be added in future. The certificate is also protected against anti-
rollback using the trusted Non-Volatile counter.

To avoid deviating from TBBR spec, support for SP CoT is only provided
in dualroot.
Secure Partition content certificate is assigned image ID 31 and SP
images follows after it.

The CoT for secure partition look like below.
+------------------+       +-------------------+
| ROTPK/ROTPK Hash |------>| Trusted Key       |
+------------------+       | Certificate       |
                           | (Auth Image)      |
                          /+-------------------+
                         /                   |
                        /                    |
                       /                     |
                      /                      |
                     L                       v
+------------------+       +-------------------+
| Trusted World    |------>| SiP owned SPs     |
| Public Key       |       | Content Cert      |
+------------------+       | (Auth Image)      |
                        /   +-------------------+
                       /                      |
                      /                      v|
+------------------+ L     +-------------------+
| SP_PKG1 Hash     |------>| SP_PKG1           |
|                  |       | (Data Image)      |
+------------------+       +-------------------+
        .                           .
        .                           .
        .                           .
+------------------+       +-------------------+
| SP_PKG8 Hash     |------>| SP_PKG8           |
|                  |       | (Data Image)      |
+------------------+       +-------------------+

Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: Ia31546bac1327a3e0b5d37e8b99c808442d5e53f
drivers/auth/dualroot/cot.c
include/common/tbbr/cot_def.h
include/common/tbbr/tbbr_img_def.h
include/drivers/auth/auth_mod.h
include/export/common/tbbr/tbbr_img_def_exp.h
plat/arm/board/fvp/fdts/fvp_fw_config.dts
plat/arm/common/fconf/arm_fconf_io.c
plat/arm/common/fconf/arm_fconf_sp.c