sha_common.h 506 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2023 HPMicro
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef SHA_COMMON_H
  8. #define SHA_COMMON_H
  9. #if !defined(MBEDTLS_CONFIG_FILE)
  10. #include "mbedtls/config.h"
  11. #else
  12. #include MBEDTLS_CONFIG_FILE
  13. #endif
  14. #include "hpm_common.h"
  15. #include "hpm_sdp_drv.h"
  16. #include "hpm_romapi.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. extern sdp_hash_ctx_t s_hash_ctx;
  21. void mbedtls_zeroize(void *v, size_t n);
  22. void hpm_sdp_api_init(void);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* SHA_COMMON_H */