OLD | NEW |
1 /* | 1 /* |
2 * stats.h | 2 * stats.h |
3 * | 3 * |
4 * interface to statistical test functions | 4 * interface to statistical test functions |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 */ | 8 */ |
9 | 9 |
10 /* | 10 /* |
(...skipping 30 matching lines...) Expand all Loading... |
41 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 41 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
42 * OF THE POSSIBILITY OF SUCH DAMAGE. | 42 * OF THE POSSIBILITY OF SUCH DAMAGE. |
43 * | 43 * |
44 */ | 44 */ |
45 | 45 |
46 | 46 |
47 #ifndef STAT_H | 47 #ifndef STAT_H |
48 #define STAT_H | 48 #define STAT_H |
49 | 49 |
50 #include "datatypes.h" /* for uint8_t */ | 50 #include "datatypes.h" /* for uint8_t */ |
51 #include "err.h" /* for err_status_t */ | 51 #include "err.h" /* for srtp_err_status_t */ |
52 #include "rand_source.h" /* for rand_source_func_t definition */ | |
53 | 52 |
54 err_status_t | 53 #ifdef __cplusplus |
55 stat_test_monobit(uint8_t *data); | 54 extern "C" { |
| 55 #endif |
56 | 56 |
57 err_status_t | 57 srtp_err_status_t stat_test_monobit(uint8_t *data); |
58 stat_test_poker(uint8_t *data); | |
59 | 58 |
60 err_status_t | 59 srtp_err_status_t stat_test_poker(uint8_t *data); |
61 stat_test_runs(uint8_t *data); | |
62 | 60 |
63 err_status_t | 61 srtp_err_status_t stat_test_runs(uint8_t *data); |
64 stat_test_rand_source(rand_source_func_t rs); | |
65 | 62 |
66 err_status_t | 63 #ifdef __cplusplus |
67 stat_test_rand_source_with_repetition(rand_source_func_t source, unsigned num_tr
ials); | 64 } |
| 65 #endif |
68 | 66 |
69 #endif /* STAT_H */ | 67 #endif /* STAT_H */ |
OLD | NEW |