]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/plugins/random/random_rng.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / random / random_rng.h
CommitLineData
6a365f07
MW
1/*
2 * Copyright (C) 2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
6a365f07
MW
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
6a365f07 15 */
7daf5226 16
6a365f07
MW
17/**
18 * @defgroup random_rng random_rng
1490ff4d 19 * @{ @ingroup random_p
6a365f07
MW
20 */
21
22#ifndef RANDOM_RNG_H_
23#define RANDOM_RNG_H_
24
25typedef struct random_rng_t random_rng_t;
26
27#include <library.h>
28
29/**
30 * rng_t implementation on top of /dev/[u]random
31 */
32struct random_rng_t {
7daf5226 33
6a365f07
MW
34 /**
35 * Implements rng_t.
36 */
37 rng_t rng;
38};
39
40/**
41 * Creates an random_rng_t instance.
7daf5226 42 *
6a365f07
MW
43 * @param quality required quality of randomness
44 * @return created random_rng_t
45 */
46random_rng_t *random_rng_create(rng_quality_t quality);
47
1490ff4d 48#endif /** RANDOM_RNG_H_ @} */