arm-trusted-firmware/plat/common
dp-arm d35dee23b6 tbbr: Fix updating of Non-Trusted NV counter
The previous code required that a certificate be signed with the ROT
key before the platform's NV counter could be updated with the value
in the certificate.  This implies that the Non-Trusted NV counter was
not being updated for Non-Trusted content certificates, as they cannot
be signed with the ROT key in the TBBR CoT scheme.

The code is reworked to only allow updating the platform's Trusted NV
counter when a certificate protected by the Trusted NV counter is
signed with the ROT key.

Content certificates protected by the Non-Trusted NV counter are
allowed to update the platform's Non-Trusted NV counter, assuming
that the certificate value is higher than the platform's value.

A new optional platform API has been introduced, named
plat_set_nv_ctr2().  Platforms may choose to implement it and perform
additional checks based on the authentication image descriptor before
modifying the NV counters.  A default weak implementation is available
that just calls into plat_set_nv_ctr().

Fixes ARM-software/tf-issues#426

Change-Id: I4fc978fd28a3007bc0cef972ff1f69ad0413b79c
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
2016-12-15 14:12:35 +00:00
..
aarch32 AArch32: Miscellaneous fixes in the AArch32 code 2016-12-01 11:02:51 +00:00
aarch64 Fix comment of plat_reset_handler stub 2016-10-25 01:21:01 +09:00
tbbr tbbr: Fix updating of Non-Trusted NV counter 2016-12-15 14:12:35 +00:00
plat_bl1_common.c FWU: Pass client cookie to FWU_SMC_UPDATE_DONE 2015-12-15 14:33:25 +00:00
plat_gic.c Refactor fvp gic code to be a generic driver 2014-07-09 16:36:39 +01:00
plat_gicv2.c Prepare platforms to use refactored ARM GIC drivers 2015-12-09 09:56:53 +00:00
plat_gicv3.c AArch32: Add essential ARM platform and FVP support 2016-08-10 18:01:38 +01:00
plat_psci_common.c Introduce `el3_runtime` and `PSCI` libraries 2016-07-18 17:52:15 +01:00