xref: /rk3399_ARM-atf/tools/cert_create/include/tbbr/tbb_cert.h (revision 516beb585c23056820a854b12c77a6f62cbc5c8b)
155e291a4SJuan Castillo /*
255e291a4SJuan Castillo  * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
355e291a4SJuan Castillo  *
455e291a4SJuan Castillo  * Redistribution and use in source and binary forms, with or without
555e291a4SJuan Castillo  * modification, are permitted provided that the following conditions are met:
655e291a4SJuan Castillo  *
755e291a4SJuan Castillo  * Redistributions of source code must retain the above copyright notice, this
855e291a4SJuan Castillo  * list of conditions and the following disclaimer.
955e291a4SJuan Castillo  *
1055e291a4SJuan Castillo  * Redistributions in binary form must reproduce the above copyright notice,
1155e291a4SJuan Castillo  * this list of conditions and the following disclaimer in the documentation
1255e291a4SJuan Castillo  * and/or other materials provided with the distribution.
1355e291a4SJuan Castillo  *
1455e291a4SJuan Castillo  * Neither the name of ARM nor the names of its contributors may be used
1555e291a4SJuan Castillo  * to endorse or promote products derived from this software without specific
1655e291a4SJuan Castillo  * prior written permission.
1755e291a4SJuan Castillo  *
1855e291a4SJuan Castillo  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1955e291a4SJuan Castillo  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2055e291a4SJuan Castillo  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2155e291a4SJuan Castillo  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2255e291a4SJuan Castillo  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2355e291a4SJuan Castillo  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2455e291a4SJuan Castillo  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2555e291a4SJuan Castillo  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2655e291a4SJuan Castillo  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2755e291a4SJuan Castillo  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2855e291a4SJuan Castillo  * POSSIBILITY OF SUCH DAMAGE.
2955e291a4SJuan Castillo  */
3055e291a4SJuan Castillo 
3155e291a4SJuan Castillo #ifndef TBB_CERT_H_
3255e291a4SJuan Castillo #define TBB_CERT_H_
3355e291a4SJuan Castillo 
3455e291a4SJuan Castillo #include "cert.h"
3555e291a4SJuan Castillo 
3655e291a4SJuan Castillo /*
3755e291a4SJuan Castillo  * Enumerate the certificates that are used to establish the chain of trust
3855e291a4SJuan Castillo  */
3955e291a4SJuan Castillo enum {
40*516beb58SJuan Castillo 	TRUSTED_BOOT_FW_CERT,
4155e291a4SJuan Castillo 	TRUSTED_KEY_CERT,
42*516beb58SJuan Castillo 	SCP_FW_KEY_CERT,
43*516beb58SJuan Castillo 	SCP_FW_CONTENT_CERT,
44*516beb58SJuan Castillo 	SOC_FW_KEY_CERT,
45*516beb58SJuan Castillo 	SOC_FW_CONTENT_CERT,
46*516beb58SJuan Castillo 	TRUSTED_OS_FW_KEY_CERT,
47*516beb58SJuan Castillo 	TRUSTED_OS_FW_CONTENT_CERT,
48*516beb58SJuan Castillo 	NON_TRUSTED_FW_KEY_CERT,
49*516beb58SJuan Castillo 	NON_TRUSTED_FW_CONTENT_CERT,
50cebe1f23SYatharth Kochar 	FWU_CERT
5155e291a4SJuan Castillo };
5255e291a4SJuan Castillo 
5355e291a4SJuan Castillo #endif /* TBB_CERT_H_ */
54