All of lore.kernel.org
 help / color / mirror / Atom feed
* Using aes-generic, kind-of regression in 7.0
@ 2026-02-19 18:49 Milan Broz
  2026-02-19 20:11 ` Eric Biggers
  0 siblings, 1 reply; 3+ messages in thread
From: Milan Broz @ 2026-02-19 18:49 UTC (permalink / raw)
  To: Eric Biggers; +Cc: linux-crypto@vger.kernel.org

Hi Eric,

we see failures in cryptsetup testsuite, caused by commit
a2484474272ef98d9580d8c610b0f7c6ed2f146c "crypto: aes - Replace aes-generic with wrapper around lib"

TBH I am not sure this is a regression, as the internal naming (like aes-generic) was not supposed
to be used in userspace. Unfortunately, it happened by (perhaps my) mistake with introducing "capi" syntax in dm-crypt.

For example this command
   dmsetup create test --table "0 8 crypt capi:xts(ecb(aes-generic))-plain64 7c0dc5dfd0c9191381d92e6ebb3b29e7f0dba53b0de132ae23f5726727173540 0 /dev/sdb 0"

now fails. Replacing "aes-generic" with "aes-lib" obviously works.

Cryptsetup tests use aes-generic to simulate some of these "capi" fu***ups.
(LUKS now explicitly disables using that dash driver syntax.)

I can fix cryptsetup testsuite, but I am not sure if anyone actually use this (specifically to avoid using aes-ni or some accelerated crypto drivers).

I am not sure what to do with that... *-generic name could be used as some defaults.

Is it worth to introduce some compat mapping, or just document this was just not a supported thing?

Thanks,
Milan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-19 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-19 18:49 Using aes-generic, kind-of regression in 7.0 Milan Broz
2026-02-19 20:11 ` Eric Biggers
2026-02-19 20:44   ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.