blob: 76f3c9519ba5723034bb3a34ca18eb666130c8b3 [file] [log] [blame]
Neil Horman17f0f4a2008-08-14 22:15:52 +10001/*
2 * RNG: Random Number Generator algorithms under the crypto API
3 *
4 * Copyright (c) 2008 Neil Horman <nhorman@tuxdriver.com>
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 Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 */
12
13#ifndef _CRYPTO_INTERNAL_RNG_H
14#define _CRYPTO_INTERNAL_RNG_H
15
16#include <crypto/algapi.h>
17#include <crypto/rng.h>
18
19extern const struct crypto_type crypto_rng_type;
20
Herbert Xuacec27f2015-04-21 10:46:38 +080021int crypto_register_rng(struct rng_alg *alg);
22void crypto_unregister_rng(struct rng_alg *alg);
23
Neil Horman17f0f4a2008-08-14 22:15:52 +100024static inline void *crypto_rng_ctx(struct crypto_rng *tfm)
25{
26 return crypto_tfm_ctx(&tfm->base);
27}
28
29#endif