Eric Biggers
e073f1238e
crypto: aes - Fix conditions for selecting MAC dependencies
...
Starting in commit 7137cbf2b5 ("crypto: aes - Add cmac, xcbc, and
cbcmac algorithms using library"), the aes module (CRYPTO_AES) supports
CBC based MACs using the corresponding library functions.
To avoid including unneeded functionality, that support honors the
existing CRYPTO_CMAC, CRYPTO_XCBC, and CRYPTO_CCM kconfig options. The
dependencies are selected if at least one of those is enabled.
However, the select statements don't correctly handle the case where
CRYPTO_AES=y and (for example) CRYPTO_CMAC=m. In that case the
dependencies get selected at level 'm', due to how the kconfig language
works. That causes a linker error.
Fix this by changing the selection conditions to use '!= n'.
A similar issue also exists for CRYPTO_LIB_AES's conditional selection
of CRYPTO_LIB_UTILS. The same '!= n' would work, but instead just make
CRYPTO_LIB_AES always select CRYPTO_LIB_UTILS. CRYPTO_LIB_UTILS is
lightweight, and it's needed by most AES modes and many other things.
Fixes: 7137cbf2b5 ("crypto: aes - Add cmac, xcbc, and cbcmac algorithms using library")
Fixes: 309a7e514d ("lib/crypto: aes: Add support for CBC-based MACs")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260709022954.45113-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org >
2026-07-09 11:06:22 -04:00
..
2026-05-22 20:25:29 +08:00
2026-05-28 21:24:54 -07:00
2026-06-16 09:01:23 +05:30
2025-09-20 20:21:03 +08:00
2026-05-15 18:08:48 +08:00
2026-01-12 11:07:50 -08:00
2026-05-15 18:08:48 +08:00
2025-05-05 18:20:44 +08:00
2026-05-28 13:14:25 -07:00
2025-11-12 09:52:01 +01:00
2023-05-24 18:12:33 +08:00
2026-01-12 11:39:58 -08:00
2026-03-09 13:27:20 -07:00
2026-05-29 14:05:30 +08:00
2026-06-17 08:17:00 +01:00
2026-05-15 18:08:48 +08:00
2026-02-10 12:28:44 -08:00
2026-02-21 17:09:51 -08:00
2026-05-29 14:05:30 +08:00
2026-05-29 14:05:30 +08:00
2026-05-29 14:05:30 +08:00
2026-05-29 14:05:30 +08:00
2025-09-20 20:21:04 +08:00
2026-05-28 17:45:46 -07:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-10-17 16:03:58 +08:00
2026-05-07 16:10:03 +08:00
2025-10-29 22:04:24 -07:00
2026-01-23 13:48:44 +08:00
2025-05-05 18:20:44 +08:00
2025-03-02 15:19:43 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-05-31 17:34:56 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2026-06-05 19:36:36 +08:00
2025-08-29 09:50:19 -07:00
2026-05-28 17:45:45 -07:00
2026-05-28 17:45:45 -07:00
2025-03-15 16:21:22 +08:00
2025-06-30 09:31:56 -07:00
2026-03-17 09:29:22 -07:00
2026-05-28 17:45:45 -07:00
2026-02-10 12:28:44 -08:00
2026-05-07 16:10:01 +08:00
2026-05-15 18:08:48 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2026-03-26 18:10:58 +09:00
2025-05-05 18:20:44 +08:00
2022-03-03 10:47:50 +12:00
2026-04-03 08:56:11 +08:00
2026-05-15 18:08:47 +08:00
2025-05-05 18:20:44 +08:00
2024-04-12 15:07:52 +08:00
2026-05-22 20:25:29 +08:00
2021-03-13 00:04:03 +11:00
2025-05-05 18:20:44 +08:00
2025-04-16 15:16:21 +08:00
2025-04-16 15:16:21 +08:00
2025-05-05 18:20:44 +08:00
2021-03-26 19:41:58 +11:00
2025-05-12 13:32:53 +08:00
2024-04-12 15:07:52 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2026-05-29 13:54:43 +08:00
2025-10-09 15:02:35 +08:00
2025-12-19 14:47:47 +08:00
2026-03-23 16:44:29 -07:00
2026-04-12 16:47:09 +08:00
2024-04-02 10:49:38 +08:00
2026-03-23 13:15:13 -07:00
2026-05-28 17:45:45 -07:00
2026-05-28 17:45:46 -07:00
2026-04-15 15:22:26 -07:00
2024-10-19 08:44:30 +08:00
2026-05-15 18:08:36 +08:00
2026-03-09 13:27:21 -07:00
2026-07-09 11:06:22 -04:00
2025-05-12 13:33:14 +08:00
2025-12-29 08:48:35 +08:00
2026-05-15 18:08:48 +08:00
2026-04-20 16:18:58 +08:00
2026-03-22 11:17:59 +09:00
2026-05-15 18:08:48 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2026-06-17 08:17:00 +01:00
2025-05-05 18:20:44 +08:00
2025-09-08 09:47:38 -07:00
2026-01-21 22:32:50 +00:00
2026-06-05 19:36:35 +08:00
2026-01-05 16:43:36 +01:00
2021-01-29 16:07:04 +11:00
2025-05-05 18:20:44 +08:00
2026-06-12 09:56:45 +08:00
2019-05-30 11:26:32 -07:00
2024-10-05 13:22:04 +08:00
2025-05-05 18:20:44 +08:00
2023-10-27 18:04:28 +08:00
2023-10-27 18:04:28 +08:00
2025-04-16 15:16:21 +08:00
2025-11-22 10:04:50 +08:00
2026-05-15 18:08:48 +08:00
2025-05-05 18:20:44 +08:00
2025-12-19 14:47:06 +08:00
2025-05-05 18:20:44 +08:00
2025-09-02 19:02:35 -07:00
2025-11-05 20:30:51 -08:00
2025-09-02 19:02:37 -07:00
2025-09-02 19:02:39 -07:00
2026-06-17 08:17:00 +01:00
2026-05-15 18:08:48 +08:00
2026-03-22 11:17:59 +09:00
2026-05-15 18:08:48 +08:00
2024-04-02 10:49:38 +08:00
2026-03-23 17:50:59 -07:00
2025-05-05 18:20:44 +08:00
2024-10-02 17:23:23 -04:00
2025-05-05 18:20:44 +08:00
2026-06-09 17:03:03 -07:00
2025-11-22 10:04:50 +08:00
2026-03-22 11:17:59 +09:00
2026-06-17 08:17:00 +01:00
2026-06-17 08:17:00 +01:00
2022-12-02 18:12:40 +08:00
2025-05-05 18:20:44 +08:00
2025-06-23 16:56:56 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2026-03-22 11:17:59 +09:00
2025-05-05 18:20:44 +08:00
2026-02-21 17:09:51 -08:00