Re: [PATCH v11 1/4] crypto: essiv - create wrapper template for ESSIV generation

From
Ard Biesheuvel <hidden>
Date
2019-08-15 05:15:43
Also in
dm-devel, linux-fscrypt
Reply to
Herbert Xu, 2019-08-15
On Thu, 15 Aug 2019 at 08:13, Herbert Xu [off-list ref] wrote:
On Thu, Aug 15, 2019 at 07:59:34AM +0300, Ard Biesheuvel wrote:
quoted
So how do I ensure that the cipher and shash are actually loaded at
create() time, and that they are still loaded at TFM init time?
If they're not available at TFM init then you just fail the init
and therefore the TFM allocation.  What is the problem?

IOW the presence of the block cipher and unkeyed hash does not
affect the creation of the instance object.
Right.

So what about checking that the cipher key size matches the shash
digest size, or that the cipher block size matches the skcipher IV
size? This all moves to the TFM init function?

Are there any existing templates that use this approach?
Thread (12 messages) 12 messages, 2 authors, last reply 2019-08-15
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