cert_create: add non-volatile counter support
authorJuan Castillo <juan.castillo@arm.com>
Fri, 22 Jan 2016 11:05:24 +0000 (11:05 +0000)
committerJuan Castillo <juan.castillo@arm.com>
Wed, 30 Mar 2016 13:46:30 +0000 (14:46 +0100)
commit96103d5af671b566cf523b0a5a1bb4fe4ef9bb64
tree14e791a51571df903d26970ba00411439c757407
parent55a85659c0a35dba10c72a9c38b82b29f77a90ad
cert_create: add non-volatile counter support

This patch adds non-volatile counter support to the Certificate
Generation tool. The TBBR Chain of Trust definition in the tool
has been extended to include the counters as certificate extensions.
The counter values can be specified in the command line.

The following default counter values are specified in the build
system:

  * Trusted FW Non-Volatile counter = 0
  * Non-Trusted FW Non-Volatile counter = 0

These values can be overridden by the platform at build time.

Change-Id: I7ea10ee78d72748d181df4ee78a7169b3ef2720c
make_helpers/tbbr/tbbr_tools.mk
tools/cert_create/include/ext.h
tools/cert_create/src/main.c
tools/cert_create/src/tbbr/tbb_cert.c
tools/cert_create/src/tbbr/tbb_ext.c