1config CRYPTO_DEV_ALLWINNER 2 bool "Support for Allwinner cryptographic offloader" 3 depends on ARCH_SUNXI || COMPILE_TEST 4 default y if ARCH_SUNXI 5 help 6 Say Y here to get to see options for Allwinner hardware crypto devices 7 8config CRYPTO_DEV_SUN4I_SS 9 tristate "Support for Allwinner Security System cryptographic accelerator" 10 depends on ARCH_SUNXI 11 depends on PM 12 depends on CRYPTO_DEV_ALLWINNER 13 select CRYPTO_MD5 14 select CRYPTO_SHA1 15 select CRYPTO_AES 16 select CRYPTO_LIB_DES 17 select CRYPTO_RNG 18 select CRYPTO_SKCIPHER 19 help 20 Some Allwinner SoC have a crypto accelerator named 21 Security System. Select this if you want to use it. 22 The Security System handle AES/DES/3DES ciphers in CBC mode 23 and SHA1 and MD5 hash algorithms. 24 25 To compile this driver as a module, choose M here: the module 26 will be called sun4i-ss. 27 28config CRYPTO_DEV_SUN4I_SS_PRNG 29 bool "Support for Allwinner Security System PRNG" 30 depends on CRYPTO_DEV_SUN4I_SS 31 select CRYPTO_RNG 32 help 33 Select this option if you want to provide kernel-side support for 34 the Pseudo-Random Number Generator found in the Security System. 35 36config CRYPTO_DEV_SUN4I_SS_DEBUG 37 bool "Enable sun4i-ss stats" 38 depends on CRYPTO_DEV_SUN4I_SS 39 depends on DEBUG_FS 40 help 41 Say y to enable sun4i-ss debug stats. 42 This will create /sys/kernel/debug/sun4i-ss/stats for displaying 43 the number of requests per algorithm. 44 45config CRYPTO_DEV_SUN8I_CE 46 tristate "Support for Allwinner Crypto Engine cryptographic offloader" 47 select CRYPTO_SKCIPHER 48 select CRYPTO_ENGINE 49 select CRYPTO_ECB 50 select CRYPTO_CBC 51 select CRYPTO_AES 52 select CRYPTO_DES 53 select CRYPTO_RNG 54 depends on CRYPTO_DEV_ALLWINNER 55 depends on PM 56 help 57 Select y here to have support for the crypto Engine available on 58 Allwinner SoC H2+, H3, H5, H6, R40 and A64. 59 The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode. 60 61 To compile this driver as a module, choose M here: the module 62 will be called sun8i-ce. 63 64config CRYPTO_DEV_SUN8I_CE_DEBUG 65 bool "Enable sun8i-ce stats" 66 depends on CRYPTO_DEV_SUN8I_CE 67 depends on DEBUG_FS 68 help 69 Say y to enable sun8i-ce debug stats. 70 This will create /sys/kernel/debug/sun8i-ce/stats for displaying 71 the number of requests per flow and per algorithm. 72 73config CRYPTO_DEV_SUN8I_CE_HASH 74 bool "Enable support for hash on sun8i-ce" 75 depends on CRYPTO_DEV_SUN8I_CE 76 select CRYPTO_MD5 77 select CRYPTO_SHA1 78 select CRYPTO_SHA256 79 select CRYPTO_SHA512 80 help 81 Say y to enable support for hash algorithms. 82 83config CRYPTO_DEV_SUN8I_CE_PRNG 84 bool "Support for Allwinner Crypto Engine PRNG" 85 depends on CRYPTO_DEV_SUN8I_CE 86 select CRYPTO_RNG 87 help 88 Select this option if you want to provide kernel-side support for 89 the Pseudo-Random Number Generator found in the Crypto Engine. 90 91config CRYPTO_DEV_SUN8I_CE_TRNG 92 bool "Support for Allwinner Crypto Engine TRNG" 93 depends on CRYPTO_DEV_SUN8I_CE 94 select HW_RANDOM 95 help 96 Select this option if you want to provide kernel-side support for 97 the True Random Number Generator found in the Crypto Engine. 98 99config CRYPTO_DEV_SUN8I_SS 100 tristate "Support for Allwinner Security System cryptographic offloader" 101 select CRYPTO_SKCIPHER 102 select CRYPTO_ENGINE 103 select CRYPTO_ECB 104 select CRYPTO_CBC 105 select CRYPTO_AES 106 select CRYPTO_DES 107 depends on CRYPTO_DEV_ALLWINNER 108 depends on PM 109 help 110 Select y here to have support for the Security System available on 111 Allwinner SoC A80, A83T. 112 The Security System handle AES/3DES ciphers in ECB/CBC mode. 113 114 To compile this driver as a module, choose M here: the module 115 will be called sun8i-ss. 116 117config CRYPTO_DEV_SUN8I_SS_DEBUG 118 bool "Enable sun8i-ss stats" 119 depends on CRYPTO_DEV_SUN8I_SS 120 depends on DEBUG_FS 121 help 122 Say y to enable sun8i-ss debug stats. 123 This will create /sys/kernel/debug/sun8i-ss/stats for displaying 124 the number of requests per flow and per algorithm. 125 126config CRYPTO_DEV_SUN8I_SS_PRNG 127 bool "Support for Allwinner Security System PRNG" 128 depends on CRYPTO_DEV_SUN8I_SS 129 select CRYPTO_RNG 130 help 131 Select this option if you want to provide kernel-side support for 132 the Pseudo-Random Number Generator found in the Security System. 133 134config CRYPTO_DEV_SUN8I_SS_HASH 135 bool "Enable support for hash on sun8i-ss" 136 depends on CRYPTO_DEV_SUN8I_SS 137 select CRYPTO_MD5 138 select CRYPTO_SHA1 139 select CRYPTO_SHA256 140 help 141 Say y to enable support for hash algorithms. 142