Linux 3.17-rc2
[linux/fpc-iii.git] / include / crypto / internal / rng.h
blob896973369573f7f078c519cd562128206129398a
1 /*
2 * RNG: Random Number Generator algorithms under the crypto API
4 * Copyright (c) 2008 Neil Horman <nhorman@tuxdriver.com>
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.
13 #ifndef _CRYPTO_INTERNAL_RNG_H
14 #define _CRYPTO_INTERNAL_RNG_H
16 #include <crypto/algapi.h>
17 #include <crypto/rng.h>
19 extern const struct crypto_type crypto_rng_type;
21 static inline void *crypto_rng_ctx(struct crypto_rng *tfm)
23 return crypto_tfm_ctx(&tfm->base);
26 #endif