Linux Audio

Check our new training course

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