aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-20 01:39:03 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-20 22:19:57 -0400
commitd0e83059a6c9b04f00264a74b8f6439948de4613 (patch)
tree18cce1bc75fad593b10995e50197f41d2a9ca267 /include/linux/crypto.h
parentf7c9bebe8bc79ddb8a50db441a53b59b61ae3ba8 (diff)
crypto: rng - Convert crypto_rng to new style crypto_type
This patch converts the top-level crypto_rng to the "new" style. It was the last algorithm type added before we switched over to the new way of doing things exemplified by shash. All users will automatically switch over to the new interface. Note that this patch does not touch the low-level interface to rng implementations. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 10df5d2d093a..781f7d546020 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -655,19 +655,12 @@ struct compress_tfm {
655 u8 *dst, unsigned int *dlen); 655 u8 *dst, unsigned int *dlen);
656}; 656};
657 657
658struct rng_tfm {
659 int (*rng_gen_random)(struct crypto_rng *tfm, u8 *rdata,
660 unsigned int dlen);
661 int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen);
662};
663
664#define crt_ablkcipher crt_u.ablkcipher 658#define crt_ablkcipher crt_u.ablkcipher
665#define crt_aead crt_u.aead 659#define crt_aead crt_u.aead
666#define crt_blkcipher crt_u.blkcipher 660#define crt_blkcipher crt_u.blkcipher
667#define crt_cipher crt_u.cipher 661#define crt_cipher crt_u.cipher
668#define crt_hash crt_u.hash 662#define crt_hash crt_u.hash
669#define crt_compress crt_u.compress 663#define crt_compress crt_u.compress
670#define crt_rng crt_u.rng
671 664
672struct crypto_tfm { 665struct crypto_tfm {
673 666
@@ -680,7 +673,6 @@ struct crypto_tfm {
680 struct cipher_tfm cipher; 673 struct cipher_tfm cipher;
681 struct hash_tfm hash; 674 struct hash_tfm hash;
682 struct compress_tfm compress; 675 struct compress_tfm compress;
683 struct rng_tfm rng;
684 } crt_u; 676 } crt_u;
685 677
686 void (*exit)(struct crypto_tfm *tfm); 678 void (*exit)(struct crypto_tfm *tfm);
@@ -714,10 +706,6 @@ struct crypto_hash {
714 struct crypto_tfm base; 706 struct crypto_tfm base;
715}; 707};
716 708
717struct crypto_rng {
718 struct crypto_tfm base;
719};
720
721enum { 709enum {
722 CRYPTOA_UNSPEC, 710 CRYPTOA_UNSPEC,
723 CRYPTOA_ALG, 711 CRYPTOA_ALG,