1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 menu "Crypto library routines" 3 menu "Crypto library routines" 4 4 5 config CRYPTO_LIB_UTILS 5 config CRYPTO_LIB_UTILS 6 tristate 6 tristate 7 7 8 config CRYPTO_LIB_AES 8 config CRYPTO_LIB_AES 9 tristate 9 tristate 10 10 11 config CRYPTO_LIB_AESCFB << 12 tristate << 13 select CRYPTO_LIB_AES << 14 select CRYPTO_LIB_UTILS << 15 << 16 config CRYPTO_LIB_AESGCM << 17 tristate << 18 select CRYPTO_LIB_AES << 19 select CRYPTO_LIB_GF128MUL << 20 select CRYPTO_LIB_UTILS << 21 << 22 config CRYPTO_LIB_ARC4 11 config CRYPTO_LIB_ARC4 23 tristate << 24 << 25 config CRYPTO_LIB_GF128MUL << 26 tristate 12 tristate 27 13 28 config CRYPTO_ARCH_HAVE_LIB_BLAKE2S 14 config CRYPTO_ARCH_HAVE_LIB_BLAKE2S 29 bool 15 bool 30 help 16 help 31 Declares whether the architecture pr 17 Declares whether the architecture provides an arch-specific 32 accelerated implementation of the Bl 18 accelerated implementation of the Blake2s library interface, 33 either builtin or as a module. 19 either builtin or as a module. 34 20 35 config CRYPTO_LIB_BLAKE2S_GENERIC 21 config CRYPTO_LIB_BLAKE2S_GENERIC 36 def_bool !CRYPTO_ARCH_HAVE_LIB_BLAKE2S 22 def_bool !CRYPTO_ARCH_HAVE_LIB_BLAKE2S 37 help 23 help 38 This symbol can be depended upon by 24 This symbol can be depended upon by arch implementations of the 39 Blake2s library interface that requi 25 Blake2s library interface that require the generic code as a 40 fallback, e.g., for SIMD implementat 26 fallback, e.g., for SIMD implementations. If no arch specific 41 implementation is enabled, this impl 27 implementation is enabled, this implementation serves the users 42 of CRYPTO_LIB_BLAKE2S. 28 of CRYPTO_LIB_BLAKE2S. 43 29 44 config CRYPTO_ARCH_HAVE_LIB_CHACHA 30 config CRYPTO_ARCH_HAVE_LIB_CHACHA 45 tristate 31 tristate 46 help 32 help 47 Declares whether the architecture pr 33 Declares whether the architecture provides an arch-specific 48 accelerated implementation of the Ch 34 accelerated implementation of the ChaCha library interface, 49 either builtin or as a module. 35 either builtin or as a module. 50 36 51 config CRYPTO_LIB_CHACHA_GENERIC 37 config CRYPTO_LIB_CHACHA_GENERIC 52 tristate 38 tristate 53 select CRYPTO_LIB_UTILS 39 select CRYPTO_LIB_UTILS 54 help 40 help 55 This symbol can be depended upon by 41 This symbol can be depended upon by arch implementations of the 56 ChaCha library interface that requir 42 ChaCha library interface that require the generic code as a 57 fallback, e.g., for SIMD implementat 43 fallback, e.g., for SIMD implementations. If no arch specific 58 implementation is enabled, this impl 44 implementation is enabled, this implementation serves the users 59 of CRYPTO_LIB_CHACHA. 45 of CRYPTO_LIB_CHACHA. 60 46 61 config CRYPTO_LIB_CHACHA 47 config CRYPTO_LIB_CHACHA 62 tristate "ChaCha library interface" 48 tristate "ChaCha library interface" 63 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA 49 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA 64 select CRYPTO_LIB_CHACHA_GENERIC if CR 50 select CRYPTO_LIB_CHACHA_GENERIC if CRYPTO_ARCH_HAVE_LIB_CHACHA=n 65 help 51 help 66 Enable the ChaCha library interface. 52 Enable the ChaCha library interface. This interface may be fulfilled 67 by either the generic implementation 53 by either the generic implementation or an arch-specific one, if one 68 is available and enabled. 54 is available and enabled. 69 55 70 config CRYPTO_ARCH_HAVE_LIB_CURVE25519 56 config CRYPTO_ARCH_HAVE_LIB_CURVE25519 71 tristate 57 tristate 72 help 58 help 73 Declares whether the architecture pr 59 Declares whether the architecture provides an arch-specific 74 accelerated implementation of the Cu 60 accelerated implementation of the Curve25519 library interface, 75 either builtin or as a module. 61 either builtin or as a module. 76 62 77 config CRYPTO_LIB_CURVE25519_GENERIC 63 config CRYPTO_LIB_CURVE25519_GENERIC 78 tristate 64 tristate 79 help 65 help 80 This symbol can be depended upon by 66 This symbol can be depended upon by arch implementations of the 81 Curve25519 library interface that re 67 Curve25519 library interface that require the generic code as a 82 fallback, e.g., for SIMD implementat 68 fallback, e.g., for SIMD implementations. If no arch specific 83 implementation is enabled, this impl 69 implementation is enabled, this implementation serves the users 84 of CRYPTO_LIB_CURVE25519. 70 of CRYPTO_LIB_CURVE25519. 85 71 86 config CRYPTO_LIB_CURVE25519 72 config CRYPTO_LIB_CURVE25519 87 tristate "Curve25519 scalar multiplica 73 tristate "Curve25519 scalar multiplication library" 88 depends on CRYPTO_ARCH_HAVE_LIB_CURVE2 74 depends on CRYPTO_ARCH_HAVE_LIB_CURVE25519 || !CRYPTO_ARCH_HAVE_LIB_CURVE25519 89 select CRYPTO_LIB_CURVE25519_GENERIC i 75 select CRYPTO_LIB_CURVE25519_GENERIC if CRYPTO_ARCH_HAVE_LIB_CURVE25519=n 90 select CRYPTO_LIB_UTILS 76 select CRYPTO_LIB_UTILS 91 help 77 help 92 Enable the Curve25519 library interf 78 Enable the Curve25519 library interface. This interface may be 93 fulfilled by either the generic impl 79 fulfilled by either the generic implementation or an arch-specific 94 one, if one is available and enabled 80 one, if one is available and enabled. 95 81 96 config CRYPTO_LIB_DES 82 config CRYPTO_LIB_DES 97 tristate 83 tristate 98 84 99 config CRYPTO_LIB_POLY1305_RSIZE 85 config CRYPTO_LIB_POLY1305_RSIZE 100 int 86 int 101 default 2 if MIPS 87 default 2 if MIPS 102 default 11 if X86_64 88 default 11 if X86_64 103 default 9 if ARM || ARM64 89 default 9 if ARM || ARM64 104 default 1 90 default 1 105 91 106 config CRYPTO_ARCH_HAVE_LIB_POLY1305 92 config CRYPTO_ARCH_HAVE_LIB_POLY1305 107 tristate 93 tristate 108 help 94 help 109 Declares whether the architecture pr 95 Declares whether the architecture provides an arch-specific 110 accelerated implementation of the Po 96 accelerated implementation of the Poly1305 library interface, 111 either builtin or as a module. 97 either builtin or as a module. 112 98 113 config CRYPTO_LIB_POLY1305_GENERIC 99 config CRYPTO_LIB_POLY1305_GENERIC 114 tristate 100 tristate 115 help 101 help 116 This symbol can be depended upon by 102 This symbol can be depended upon by arch implementations of the 117 Poly1305 library interface that requ 103 Poly1305 library interface that require the generic code as a 118 fallback, e.g., for SIMD implementat 104 fallback, e.g., for SIMD implementations. If no arch specific 119 implementation is enabled, this impl 105 implementation is enabled, this implementation serves the users 120 of CRYPTO_LIB_POLY1305. 106 of CRYPTO_LIB_POLY1305. 121 107 122 config CRYPTO_LIB_POLY1305 108 config CRYPTO_LIB_POLY1305 123 tristate "Poly1305 library interface" 109 tristate "Poly1305 library interface" 124 depends on CRYPTO_ARCH_HAVE_LIB_POLY13 110 depends on CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305 125 select CRYPTO_LIB_POLY1305_GENERIC if 111 select CRYPTO_LIB_POLY1305_GENERIC if CRYPTO_ARCH_HAVE_LIB_POLY1305=n 126 help 112 help 127 Enable the Poly1305 library interfac 113 Enable the Poly1305 library interface. This interface may be fulfilled 128 by either the generic implementation 114 by either the generic implementation or an arch-specific one, if one 129 is available and enabled. 115 is available and enabled. 130 116 131 config CRYPTO_LIB_CHACHA20POLY1305 117 config CRYPTO_LIB_CHACHA20POLY1305 132 tristate "ChaCha20-Poly1305 AEAD suppo 118 tristate "ChaCha20-Poly1305 AEAD support (8-byte nonce library version)" 133 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA 119 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA 134 depends on CRYPTO_ARCH_HAVE_LIB_POLY13 120 depends on CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305 135 depends on CRYPTO 121 depends on CRYPTO 136 select CRYPTO_LIB_CHACHA 122 select CRYPTO_LIB_CHACHA 137 select CRYPTO_LIB_POLY1305 123 select CRYPTO_LIB_POLY1305 138 select CRYPTO_ALGAPI 124 select CRYPTO_ALGAPI 139 125 140 config CRYPTO_LIB_SHA1 126 config CRYPTO_LIB_SHA1 141 tristate 127 tristate 142 128 143 config CRYPTO_LIB_SHA256 129 config CRYPTO_LIB_SHA256 144 tristate 130 tristate 145 131 146 endmenu 132 endmenu
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.