1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 8 #ifndef _CC_SEC_DEFS_H 9 #define _CC_SEC_DEFS_H 10 11 /*! 12 @file 13 @brief This file contains general hash definitions and types. 14 */ 15 16 #ifdef __cplusplus 17 extern "C" 18 { 19 #endif 20 21 /*! The hashblock size in words. */ 22 #define HASH_BLOCK_SIZE_IN_WORDS 16 23 24 /*! SHA256 result size in words. */ 25 #define HASH_RESULT_SIZE_IN_WORDS 8 26 /*! SHA256 result size in Bytes. */ 27 #define HASH_RESULT_SIZE_IN_BYTES 32 28 29 /*! Defines the hash result array. */ 30 typedef uint32_t CCHashResult_t[HASH_RESULT_SIZE_IN_WORDS]; 31 32 /*! Definition for converting pointer to address. */ 33 #define CONVERT_TO_ADDR(ptr) (unsigned long)ptr 34 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif 41 42 43 44