Re: [PATCH v13 5/6] md: dm-crypt: switch to ESSIV crypto API template

From
Ard Biesheuvel <hidden>
Date
2019-09-03 19:16:52
Also in
dm-devel, linux-fscrypt
Reply to
Mike Snitzer, 2019-09-03
On Tue, 3 Sep 2019 at 11:55, Mike Snitzer [off-list ref] wrote:
On Mon, Aug 19 2019 at 10:17am -0400,
Ard Biesheuvel [off-list ref] wrote:
quoted
Replace the explicit ESSIV handling in the dm-crypt driver with calls
into the crypto API, which now possesses the capability to perform
this processing within the crypto subsystem.

Note that we reorder the AEAD cipher_api string parsing with the TFM
instantiation: this is needed because cipher_api is mangled by the
ESSIV handling, and throws off the parsing of "authenc(" otherwise.

Signed-off-by: Ard Biesheuvel <redacted>
I really like to see this type of factoring out to the crypto API;
nicely done.

Acked-by: Mike Snitzer <redacted>

Herbert, please feel free to pull this, and the next 6/6 patch, into
your crypto tree for 5.4.  I see no need to complicate matters by me
having to rebase my dm-5.4 branch ontop of the crypto tree, etc.
Thanks Mike.

There is no need to rebase your branch - there is only a single
dependency, which is the essiv template itself, and the patch that
adds that (#1 in this series) was acked by Herbert, specifically so
that it can be taken via another tree. The crypto tree has no
interdependencies with this template, and the other patches in this
series are not required for essiv in dm-crypt.

If you feel it is too late in the cycle, we can defer to v5.5, but in
this case, we should align with Eric, which will depend on the essiv
template for fscrypt as well.

In any case, it is up to you, Eric and Herbert to align on this. For
me, it doesn't really matter whether this lands in v5.4 or v5.5. There
is some followup work based on this, but that is further out still.

Thanks,
Ard.
Thread (17 messages) 17 messages, 4 authors, last reply 2019-09-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help