13914b931SCorentin Labbeconfig CRYPTO_DEV_ALLWINNER 23914b931SCorentin Labbe bool "Support for Allwinner cryptographic offloader" 33914b931SCorentin Labbe depends on ARCH_SUNXI || COMPILE_TEST 43914b931SCorentin Labbe default y if ARCH_SUNXI 53914b931SCorentin Labbe help 63914b931SCorentin Labbe Say Y here to get to see options for Allwinner hardware crypto devices 706f751b6SCorentin Labbe 817513547SCorentin Labbeconfig CRYPTO_DEV_SUN4I_SS 917513547SCorentin Labbe tristate "Support for Allwinner Security System cryptographic accelerator" 107ca2a71dSCorentin Labbe depends on ARCH_SUNXI 1117513547SCorentin Labbe depends on PM 1217513547SCorentin Labbe depends on CRYPTO_DEV_ALLWINNER 1317513547SCorentin Labbe select CRYPTO_MD5 1417513547SCorentin Labbe select CRYPTO_SHA1 1517513547SCorentin Labbe select CRYPTO_AES 1617513547SCorentin Labbe select CRYPTO_LIB_DES 17*cdadc143SEric Biggers select CRYPTO_RNG 18b95bba5dSEric Biggers select CRYPTO_SKCIPHER 1917513547SCorentin Labbe help 2017513547SCorentin Labbe Some Allwinner SoC have a crypto accelerator named 2117513547SCorentin Labbe Security System. Select this if you want to use it. 2217513547SCorentin Labbe The Security System handle AES/DES/3DES ciphers in CBC mode 2317513547SCorentin Labbe and SHA1 and MD5 hash algorithms. 2417513547SCorentin Labbe 2517513547SCorentin Labbe To compile this driver as a module, choose M here: the module 2617513547SCorentin Labbe will be called sun4i-ss. 2717513547SCorentin Labbe 2817513547SCorentin Labbeconfig CRYPTO_DEV_SUN4I_SS_PRNG 2917513547SCorentin Labbe bool "Support for Allwinner Security System PRNG" 3017513547SCorentin Labbe depends on CRYPTO_DEV_SUN4I_SS 3117513547SCorentin Labbe select CRYPTO_RNG 3217513547SCorentin Labbe help 3317513547SCorentin Labbe Select this option if you want to provide kernel-side support for 3417513547SCorentin Labbe the Pseudo-Random Number Generator found in the Security System. 3517513547SCorentin Labbe 36b1f578b8SCorentin Labbeconfig CRYPTO_DEV_SUN4I_SS_DEBUG 37b1f578b8SCorentin Labbe bool "Enable sun4i-ss stats" 38b1f578b8SCorentin Labbe depends on CRYPTO_DEV_SUN4I_SS 39b1f578b8SCorentin Labbe depends on DEBUG_FS 40b1f578b8SCorentin Labbe help 41b1f578b8SCorentin Labbe Say y to enable sun4i-ss debug stats. 42b1f578b8SCorentin Labbe This will create /sys/kernel/debug/sun4i-ss/stats for displaying 43b1f578b8SCorentin Labbe the number of requests per algorithm. 44b1f578b8SCorentin Labbe 4506f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE 4606f751b6SCorentin Labbe tristate "Support for Allwinner Crypto Engine cryptographic offloader" 47b95bba5dSEric Biggers select CRYPTO_SKCIPHER 4806f751b6SCorentin Labbe select CRYPTO_ENGINE 4906f751b6SCorentin Labbe select CRYPTO_ECB 5006f751b6SCorentin Labbe select CRYPTO_CBC 5106f751b6SCorentin Labbe select CRYPTO_AES 5206f751b6SCorentin Labbe select CRYPTO_DES 53*cdadc143SEric Biggers select CRYPTO_RNG 5406f751b6SCorentin Labbe depends on CRYPTO_DEV_ALLWINNER 5506f751b6SCorentin Labbe depends on PM 5606f751b6SCorentin Labbe help 572e0e386aSColin Ian King Select y here to have support for the crypto Engine available on 5806f751b6SCorentin Labbe Allwinner SoC H2+, H3, H5, H6, R40 and A64. 5906f751b6SCorentin Labbe The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode. 6006f751b6SCorentin Labbe 6106f751b6SCorentin Labbe To compile this driver as a module, choose M here: the module 6206f751b6SCorentin Labbe will be called sun8i-ce. 6306f751b6SCorentin Labbe 6406f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_DEBUG 6506f751b6SCorentin Labbe bool "Enable sun8i-ce stats" 6606f751b6SCorentin Labbe depends on CRYPTO_DEV_SUN8I_CE 6706f751b6SCorentin Labbe depends on DEBUG_FS 6806f751b6SCorentin Labbe help 6906f751b6SCorentin Labbe Say y to enable sun8i-ce debug stats. 7006f751b6SCorentin Labbe This will create /sys/kernel/debug/sun8i-ce/stats for displaying 7106f751b6SCorentin Labbe the number of requests per flow and per algorithm. 72f08fccedSCorentin Labbe 7356f6d5aeSCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_HASH 7456f6d5aeSCorentin Labbe bool "Enable support for hash on sun8i-ce" 7556f6d5aeSCorentin Labbe depends on CRYPTO_DEV_SUN8I_CE 76ac1af1a7SCorentin Labbe select CRYPTO_MD5 77ac1af1a7SCorentin Labbe select CRYPTO_SHA1 78ac1af1a7SCorentin Labbe select CRYPTO_SHA256 79ac1af1a7SCorentin Labbe select CRYPTO_SHA512 8056f6d5aeSCorentin Labbe help 8156f6d5aeSCorentin Labbe Say y to enable support for hash algorithms. 8256f6d5aeSCorentin Labbe 835eb7e946SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_PRNG 845eb7e946SCorentin Labbe bool "Support for Allwinner Crypto Engine PRNG" 855eb7e946SCorentin Labbe depends on CRYPTO_DEV_SUN8I_CE 865eb7e946SCorentin Labbe select CRYPTO_RNG 875eb7e946SCorentin Labbe help 885eb7e946SCorentin Labbe Select this option if you want to provide kernel-side support for 895eb7e946SCorentin Labbe the Pseudo-Random Number Generator found in the Crypto Engine. 905eb7e946SCorentin Labbe 914a07eab3SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_TRNG 924a07eab3SCorentin Labbe bool "Support for Allwinner Crypto Engine TRNG" 934a07eab3SCorentin Labbe depends on CRYPTO_DEV_SUN8I_CE 944a07eab3SCorentin Labbe select HW_RANDOM 954a07eab3SCorentin Labbe help 964a07eab3SCorentin Labbe Select this option if you want to provide kernel-side support for 974a07eab3SCorentin Labbe the True Random Number Generator found in the Crypto Engine. 984a07eab3SCorentin Labbe 99f08fccedSCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS 100f08fccedSCorentin Labbe tristate "Support for Allwinner Security System cryptographic offloader" 101b95bba5dSEric Biggers select CRYPTO_SKCIPHER 102f08fccedSCorentin Labbe select CRYPTO_ENGINE 103f08fccedSCorentin Labbe select CRYPTO_ECB 104f08fccedSCorentin Labbe select CRYPTO_CBC 105f08fccedSCorentin Labbe select CRYPTO_AES 106f08fccedSCorentin Labbe select CRYPTO_DES 107f08fccedSCorentin Labbe depends on CRYPTO_DEV_ALLWINNER 108f08fccedSCorentin Labbe depends on PM 109f08fccedSCorentin Labbe help 110f08fccedSCorentin Labbe Select y here to have support for the Security System available on 111f08fccedSCorentin Labbe Allwinner SoC A80, A83T. 112f08fccedSCorentin Labbe The Security System handle AES/3DES ciphers in ECB/CBC mode. 113f08fccedSCorentin Labbe 114f08fccedSCorentin Labbe To compile this driver as a module, choose M here: the module 115f08fccedSCorentin Labbe will be called sun8i-ss. 116f08fccedSCorentin Labbe 117f08fccedSCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_DEBUG 118f08fccedSCorentin Labbe bool "Enable sun8i-ss stats" 119f08fccedSCorentin Labbe depends on CRYPTO_DEV_SUN8I_SS 120f08fccedSCorentin Labbe depends on DEBUG_FS 121f08fccedSCorentin Labbe help 122f08fccedSCorentin Labbe Say y to enable sun8i-ss debug stats. 123f08fccedSCorentin Labbe This will create /sys/kernel/debug/sun8i-ss/stats for displaying 124f08fccedSCorentin Labbe the number of requests per flow and per algorithm. 125ac2614d7SCorentin Labbe 126ac2614d7SCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_PRNG 127ac2614d7SCorentin Labbe bool "Support for Allwinner Security System PRNG" 128ac2614d7SCorentin Labbe depends on CRYPTO_DEV_SUN8I_SS 129ac2614d7SCorentin Labbe select CRYPTO_RNG 130ac2614d7SCorentin Labbe help 131ac2614d7SCorentin Labbe Select this option if you want to provide kernel-side support for 132ac2614d7SCorentin Labbe the Pseudo-Random Number Generator found in the Security System. 133d9b45418SCorentin Labbe 134d9b45418SCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_HASH 135d9b45418SCorentin Labbe bool "Enable support for hash on sun8i-ss" 136d9b45418SCorentin Labbe depends on CRYPTO_DEV_SUN8I_SS 137ac1af1a7SCorentin Labbe select CRYPTO_MD5 138ac1af1a7SCorentin Labbe select CRYPTO_SHA1 139ac1af1a7SCorentin Labbe select CRYPTO_SHA256 140d9b45418SCorentin Labbe help 141d9b45418SCorentin Labbe Say y to enable support for hash algorithms. 142