entropy_poll.h 621 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Mbedtls entropy_poll.h file
  3. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. */
  7. #ifndef MBEDTLS_ENTROPY_POLL_H
  8. #define MBEDTLS_ENTROPY_POLL_H
  9. #include "mbedtls/build_info.h"
  10. #include <stddef.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /**
  15. * \brief Entropy poll callback for a hardware source
  16. *
  17. *
  18. * \note This must accept NULL as its first argument.
  19. */
  20. int mbedtls_hardware_poll( void *data,
  21. unsigned char *output, size_t len, size_t *olen );
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* entropy_poll.h */