FWU: Add FWU support to `cert_create` tool
authorYatharth Kochar <yatharth.kochar@arm.com>
Fri, 21 Aug 2015 14:30:55 +0000 (15:30 +0100)
committerYatharth Kochar <yatharth.kochar@arm.com>
Wed, 9 Dec 2015 17:41:19 +0000 (17:41 +0000)
commitcebe1f238fff5ad7eadb42dd1abd3ec897c27e64
tree4ad3d28566f6a61c489c8c69e1cf8b6ad04a0cfa
parentdcda29f637891adf19a609f9b0b3adc6867de3d0
FWU: Add FWU support to `cert_create` tool

Firmware Update requires an X509v3 certificate which contains
hashes for SCP_BL2U, BL2U and NS_BL2U images as extensions.

This patch extends the Chain of Trust definition in the
'cert_create' tool to include the Firmware Update certificate
and the required extensions (including command line options).
A new field in the extension structure will be used to indicate
that the extension is optional. In the case of an image hash
extension, this field will tell the tool that the hash should
be included in the certificate, but filled with zeros.

Change-Id: I1f77a66b018826b71745910771f38d9cf6050388
tools/cert_create/include/ext.h
tools/cert_create/include/tbbr/tbb_cert.h
tools/cert_create/include/tbbr/tbb_ext.h
tools/cert_create/src/main.c
tools/cert_create/src/tbbr/tbb_cert.c
tools/cert_create/src/tbbr/tbb_ext.c