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 9 #ifndef _CRYPTO_DRIVER_H 10 #define _CRYPTO_DRIVER_H 11 12 #ifdef __cplusplus 13 extern "C" 14 { 15 #endif 16 17 18 #include "secureboot_basetypes.h" 19 #include "bsv_crypto_api.h" 20 21 22 /*! 23 * @brief This function gives the functionality of integrated hash 24 * 25 * @param[in] hwBaseAddress - CryptoCell base address 26 * @param[out] hashResult - the HASH result. 27 * 28 */ 29 #define SBROM_CryptoHash(wBaseAddress, inputDataAddr, dataSize, hashBuff) \ 30 CC_BsvSHA256(hwBaseAddress, (uint8_t *)inputDataAddr, (size_t)dataSize, hashBuff); 31 32 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif 39 40 41 42