libc: Refine the arc4random_buf implementation

fill the buffer with getrandom instead random pool
and move the implementation to from crypto to libc

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2024-10-25 18:09:30 +08:00
committed by Alan C. Assis
parent b5e5cdd851
commit 32784b0898
17 changed files with 103 additions and 154 deletions
+2
View File
@@ -14,6 +14,8 @@
"aio_suspend","aio.h","defined(CONFIG_FS_AIO)","int","FAR const struct aiocb * const []|FAR const struct aiocb * const *","int","FAR const struct timespec *"
"alarm","unistd.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","unsigned int","unsigned int"
"alphasort","dirent.h","","int","FAR const struct dirent **","FAR const struct dirent **"
"arc4random","stdlib.h","","uint32_t"
"arc4random_buf","stdlib.h","","void","FAR void *","size_t"
"asprintf","stdio.h","","int","FAR char **","FAR const IPTR char *","..."
"atof","stdlib.h","defined(CONFIG_HAVE_DOUBLE)","double","FAR const char *"
"atoi","stdlib.h","","int","FAR const char *"
1 __assert assert.h void FAR const char * int FAR const char *
14 aio_suspend aio.h defined(CONFIG_FS_AIO) int FAR const struct aiocb * const []|FAR const struct aiocb * const * int FAR const struct timespec *
15 alarm unistd.h !defined(CONFIG_DISABLE_POSIX_TIMERS) unsigned int unsigned int
16 alphasort dirent.h int FAR const struct dirent ** FAR const struct dirent **
17 arc4random stdlib.h uint32_t
18 arc4random_buf stdlib.h void FAR void * size_t
19 asprintf stdio.h int FAR char ** FAR const IPTR char * ...
20 atof stdlib.h defined(CONFIG_HAVE_DOUBLE) double FAR const char *
21 atoi stdlib.h int FAR const char *