drv_rng.h 915 B

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (C) 2020 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _DRV_RNG_H_
  13. #define _DRV_RNG_H_
  14. #include "osi_compiler.h"
  15. OSI_EXTERN_C_BEGIN
  16. #include <stdbool.h>
  17. /**
  18. * \brief generate rng data
  19. * \param buf buffer to store random data
  20. * \param len buffer length
  21. * \return
  22. * - true on success else false
  23. */
  24. bool drvRngGenerate(void *buf, unsigned len);
  25. OSI_EXTERN_C_END
  26. #endif