summaryrefslogtreecommitdiff
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-21 05:46:38 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-22 04:30:14 +0300
commitacec27ff35af9caf34d76d16ee17ff3b292e7d83 (patch)
treecbbadbe7b3b8ed91da58850cd147145c944b359c /include/linux/crypto.h
parent3c5d8fa9f56ad0928e7a1f06003e5034f5eedb52 (diff)
downloadlinux-acec27ff35af9caf34d76d16ee17ff3b292e7d83.tar.xz
crypto: rng - Convert low-level crypto_rng to new style
This patch converts the low-level crypto_rng interface to the "new" style. This allows existing implementations to be converted over one- by-one. Once that is complete we can then remove the old rng interface. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 781f7d546020..2fa9b05360f7 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -427,7 +427,7 @@ struct compress_alg {
};
/**
- * struct rng_alg - random number generator definition
+ * struct old_rng_alg - random number generator definition
* @rng_make_random: The function defined by this variable obtains a random
* number. The random number generator transform must generate
* the random number out of the context provided with this
@@ -445,7 +445,7 @@ struct compress_alg {
* seeding is implemented internally without the need of support by
* the consumer. In this case, the seed size is set to zero.
*/
-struct rng_alg {
+struct old_rng_alg {
int (*rng_make_random)(struct crypto_rng *tfm, u8 *rdata,
unsigned int dlen);
int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen);
@@ -559,7 +559,7 @@ struct crypto_alg {
struct blkcipher_alg blkcipher;
struct cipher_alg cipher;
struct compress_alg compress;
- struct rng_alg rng;
+ struct old_rng_alg rng;
} cra_u;
int (*cra_init)(struct crypto_tfm *tfm);