arm-trusted-firmware/drivers
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
..
arm AArch32: Miscellaneous fixes in the AArch32 code 2016-12-01 11:02:51 +00:00
auth tbbr: Fix updating of Non-Trusted NV counter 2016-12-15 14:12:35 +00:00
cadence/uart Move console drivers to AArch64 folder 2016-08-09 17:33:57 +01:00
console AArch32: Add console driver 2016-08-10 12:35:46 +01:00
delay_timer Implement generic delay timer 2016-05-20 15:29:30 +01:00
emmc emmc: support CMD23 2016-08-12 11:41:00 +08:00
gpio gpio: support gpio set/get pull status 2016-05-27 09:39:56 +08:00
io io: block: fix unaligned buffer 2016-08-04 09:53:29 +08:00
partition partition: check GPT partition table 2016-09-20 13:19:32 +08:00
ti/uart Move console drivers to AArch64 folder 2016-08-09 17:33:57 +01:00