hc32_ll_hash.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. *******************************************************************************
  3. * @file hc32_ll_hash.h
  4. * @brief This file contains all the functions prototypes of the HASH driver
  5. * library.
  6. @verbatim
  7. Change Logs:
  8. Date Author Notes
  9. 2022-12-31 CDT First version
  10. @endverbatim
  11. *******************************************************************************
  12. * Copyright (C) 2022, Xiaohua Semiconductor Co., Ltd. All rights reserved.
  13. *
  14. * This software component is licensed by XHSC under BSD 3-Clause license
  15. * (the "License"); You may not use this file except in compliance with the
  16. * License. You may obtain a copy of the License at:
  17. * opensource.org/licenses/BSD-3-Clause
  18. *
  19. *******************************************************************************
  20. */
  21. #ifndef __HC32_LL_HASH_H__
  22. #define __HC32_LL_HASH_H__
  23. /* C binding of definitions if building with C++ compiler */
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. /*******************************************************************************
  29. * Include files
  30. ******************************************************************************/
  31. #include "hc32_ll_def.h"
  32. #include "hc32f4xx.h"
  33. #include "hc32f4xx_conf.h"
  34. /**
  35. * @addtogroup LL_Driver
  36. * @{
  37. */
  38. /**
  39. * @addtogroup LL_HASH
  40. * @{
  41. */
  42. #if (LL_HASH_ENABLE == DDL_ON)
  43. /*******************************************************************************
  44. * Global type definitions ('typedef')
  45. ******************************************************************************/
  46. /*******************************************************************************
  47. * Global pre-processor symbols/macros ('#define')
  48. ******************************************************************************/
  49. /*******************************************************************************
  50. * Global variable definitions ('extern')
  51. ******************************************************************************/
  52. /*******************************************************************************
  53. Global function prototypes (definition in C source)
  54. ******************************************************************************/
  55. /**
  56. * @addtogroup HASH_Global_Functions
  57. * @{
  58. */
  59. int32_t HASH_Calculate(const uint8_t *pu8SrcData, uint32_t u32SrcDataSize, uint8_t *pu8MsgDigest);
  60. /**
  61. * @}
  62. */
  63. #endif /* LL_HASH_ENABLE */
  64. /**
  65. * @}
  66. */
  67. /**
  68. * @}
  69. */
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif /* __HC32_LL_HASH_H__ */
  74. /*******************************************************************************
  75. * EOF (not truncated)
  76. ******************************************************************************/