1 /* 2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _CC_CRYPTO_BOOT_DEFS_H 8 #define _CC_CRYPTO_BOOT_DEFS_H 9 10 /*! @file 11 @brief This file contains SBROM definitions 12 */ 13 14 /*! Version counters value. */ 15 typedef enum { 16 17 CC_SW_VERSION_COUNTER1 = 1, /*!< Counter 1 - trusted version. */ 18 CC_SW_VERSION_COUNTER2, /*!< Counter 2 - non trusted version. */ 19 20 CC_SW_VERSION_MAX = 0x7FFFFFFF 21 22 } CCSbSwVersionId_t; 23 24 /* HASH boot key definition */ 25 typedef enum { 26 CC_SB_HASH_BOOT_KEY_0_128B = 0, /*!< 128-bit truncated SHA256 digest of public key 0. */ 27 CC_SB_HASH_BOOT_KEY_1_128B = 1, /*!< 128-bit truncated SHA256 digest of public key 1. */ 28 CC_SB_HASH_BOOT_KEY_256B = 2, /*!< 256-bit SHA256 digest of public key. */ 29 CC_SB_HASH_BOOT_NOT_USED = 0xFF, 30 CC_SB_HASH_MAX_NUM = 0x7FFFFFFF, /*!\internal use external 128-bit truncated SHA256 digest */ 31 } CCSbPubKeyIndexType_t; 32 33 34 #endif 35