aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-18 18:46:03 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-18 18:46:03 -0500
commit0eddf038adc8dff78efe86b71284e3f52b7cef27 (patch)
tree0b1521e7117b36f315ad1c4d9a4a3175da80cfd8
parent86b7cbc9d3f7b357dbd4f22779c5df375eb76c46 (diff)
parentc8620c2590f43eff864fe597fcbe5b72ab7a7b94 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: [CRYPTO] null: Add missing Kconfig dependency on BLKCIPHER [CRYPTO] tcrypt: Add missing Kconfig dependency on BLKCIPHER [HIFN]: Fix invalid config ifdefs for RNG support
-rw-r--r--crypto/Kconfig2
-rw-r--r--drivers/crypto/hifn_795x.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index c3166a1a5bb6..898acc5c1967 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -74,6 +74,7 @@ config CRYPTO_XCBC
74config CRYPTO_NULL 74config CRYPTO_NULL
75 tristate "Null algorithms" 75 tristate "Null algorithms"
76 select CRYPTO_ALGAPI 76 select CRYPTO_ALGAPI
77 select CRYPTO_BLKCIPHER
77 help 78 help
78 These are 'Null' algorithms, used by IPsec, which do nothing. 79 These are 'Null' algorithms, used by IPsec, which do nothing.
79 80
@@ -567,6 +568,7 @@ config CRYPTO_TEST
567 depends on m 568 depends on m
568 select CRYPTO_ALGAPI 569 select CRYPTO_ALGAPI
569 select CRYPTO_AEAD 570 select CRYPTO_AEAD
571 select CRYPTO_BLKCIPHER
570 help 572 help
571 Quick & dirty crypto test module. 573 Quick & dirty crypto test module.
572 574
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index dfbf24c4033c..3110bf7014f7 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -463,7 +463,7 @@ struct hifn_device
463 463
464 unsigned int pk_clk_freq; 464 unsigned int pk_clk_freq;
465 465
466#ifdef CRYPTO_DEV_HIFN_795X_RNG 466#ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
467 unsigned int rng_wait_time; 467 unsigned int rng_wait_time;
468 ktime_t rngtime; 468 ktime_t rngtime;
469 struct hwrng rng; 469 struct hwrng rng;
@@ -795,7 +795,7 @@ static struct pci2id {
795 } 795 }
796}; 796};
797 797
798#ifdef CRYPTO_DEV_HIFN_795X_RNG 798#ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
799static int hifn_rng_data_present(struct hwrng *rng, int wait) 799static int hifn_rng_data_present(struct hwrng *rng, int wait)
800{ 800{
801 struct hifn_device *dev = (struct hifn_device *)rng->priv; 801 struct hifn_device *dev = (struct hifn_device *)rng->priv;
@@ -880,7 +880,7 @@ static int hifn_init_pubrng(struct hifn_device *dev)
880 dprintk("Chip %s: RNG engine has been successfully initialised.\n", 880 dprintk("Chip %s: RNG engine has been successfully initialised.\n",
881 dev->name); 881 dev->name);
882 882
883#ifdef CRYPTO_DEV_HIFN_795X_RNG 883#ifdef CONFIG_CRYPTO_DEV_HIFN_795X_RNG
884 /* First value must be discarded */ 884 /* First value must be discarded */
885 hifn_read_1(dev, HIFN_1_RNG_DATA); 885 hifn_read_1(dev, HIFN_1_RNG_DATA);
886 dev->rngtime = ktime_get(); 886 dev->rngtime = ktime_get();