Select one of the symbols to view example projects that use it.
 
Outline
#define RANDOM_H
#define random_init
#define random_deinit
#define random_add_randomness
#define random_get_bytes
#define random_pool_ready
#define random_mark_pool_ready
Files
loading (4/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wpa_supplicant/src/crypto/random.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * Random number generator * Copyright (c) 2010-2011, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. *//* ... */ #ifndef RANDOM_H #define RANDOM_H #ifdef CONFIG_NO_RANDOM_POOL #define random_init(e) do { } while (0) #define random_deinit() do { } while (0) #define random_add_randomness(b, l) do { } while (0) #define random_get_bytes(b, l) os_get_random((b), (l)) #define random_pool_ready() 1 #define random_mark_pool_ready() do { } while (0)/* ... */ #else /* CONFIG_NO_RANDOM_POOL */ void random_init(const char *entropy_file); void random_deinit(void); void random_add_randomness(const void *buf, size_t len); int random_get_bytes(void *buf, size_t len); int random_pool_ready(void); void random_mark_pool_ready(void);/* ... */ #endif /* CONFIG_NO_RANDOM_POOL */ /* ... */ #endif /* RANDOM_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.