Home | History | Annotate | Download | only in cryptocell
      1 /*
      2  * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
      3  *
      4  * SPDX-License-Identifier: BSD-3-Clause
      5  */
      6 
      7 #ifndef _CRYPTO_DRIVER_H
      8 #define _CRYPTO_DRIVER_H
      9 
     10 #ifdef __cplusplus
     11 extern "C"
     12 {
     13 #endif
     14 
     15 #include "cc_pal_sb_plat.h"
     16 #include "cc_sec_defs.h"
     17 
     18 /*----------------------------
     19       PUBLIC FUNCTIONS
     20 -----------------------------------*/
     21 /*!
     22  * @brief This function gives the functionality of integrated hash
     23  *
     24  * @param[in] hwBaseAddress	- CryptoCell base address
     25  * @param[out] hashResult	- the HASH result.
     26  *
     27  */
     28 CCError_t SBROM_CryptoHash(unsigned long hwBaseAddress, CCDmaAddr_t inputDataAddr, uint32_t BlockSize,
     29 				CCHashResult_t hashResult);
     30 
     31 #ifdef __cplusplus
     32 }
     33 #endif
     34 
     35 #endif
     36