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