summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/patches-2.6.33/170-crypto.patch
blob: 3690f167eb974ed87602479d4d2a650bdf52f4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -222,4 +222,66 @@ config CRYPTO_DEV_PPC4XX
 	help
 	  This option allows you to have support for AMCC crypto acceleration.
 
+config CRYPTO_DEV_IFXMIPS
+	bool "Support for IFXMIPS crypto engine"
+	select CRYPTO_ALGAPI
+	default y
+	help
+	Will support IFXMIPS crypto hardware
+	  If you are unsure, say M.
+
+menuconfig CRYPTO_DEV_IFXMIPS_DES
+	bool "IFXMIPS crypto hardware for DES algorithm"
+	depends on CRYPTO_DEV_IFXMIPS
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	Use crypto hardware for DES/3DES algorithm.
+	  If unsure say N.
+
+menuconfig CRYPTO_DEV_IFXMIPS_AES
+	bool "IFXMIPS crypto hardware for AES algorithm"
+	depends on CRYPTO_DEV_IFXMIPS
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	Use crypto hardware for AES algorithm.
+	  If unsure say N.
+
+menuconfig CRYPTO_DEV_IFXMIPS_ARC4
+	bool "IFXMIPS crypto hardware for ARC4 algorithm"
+	depends on (CRYPTO_DEV_IFXMIPS && !DANUBE)
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	Use crypto hardware for ARC4 algorithm.
+	  If unsure say N.
+
+menuconfig CRYPTO_DEV_IFXMIPS_SHA1
+	bool "IFXMIPS crypto hardware for SHA1 algorithm"
+	depends on CRYPTO_DEV_IFXMIPS
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	Use crypto hardware for SHA1 algorithm.
+	  If unsure say N.
+
+menuconfig CRYPTO_DEV_IFXMIPS_SHA1_HMAC
+	bool "IFXMIPS crypto hardware for SHA1_HMAC algorithm"
+	depends on (CRYPTO_DEV_IFXMIPS && !DANUBE)
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	Use crypto hardware for SHA1_HMAC algorithm.
+	  If unsure say N.
+
+menuconfig CRYPTO_DEV_IFXMIPS_MD5_HMAC
+	bool "IFXMIPS crypto hardware for MD5_HMAC algorithms"
+	depends on (CRYPTO_DEV_IFXMIPS && !DANUBE)
+	select CRYPTO_BLKCIPHER
+	default y
+	help
+	  Use crypto hardware for MD5_HMAC algorithm.
+	  If unsure say N.
+
 endif # CRYPTO_HW
--- a/drivers/crypto/Makefile
+++ b/drivers/crypto/Makefile
@@ -6,3 +6,4 @@ obj-$(CONFIG_CRYPTO_DEV_MV_CESA) += mv_c
 obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
 obj-$(CONFIG_CRYPTO_DEV_IXP4XX) += ixp4xx_crypto.o
 obj-$(CONFIG_CRYPTO_DEV_PPC4XX) += amcc/
+obj-$(CONFIG_CRYPTO_DEV_IFXMIPS) += ifxmips/