Re: [PATCH v3 3/3] blk-crypto: show crypto capabilities in sysfs

From
Eric Biggers <ebiggers@kernel.org>
Date
2021-12-10 17:45:25
Also in
linux-block, linux-mmc, linux-scsi, lkml
Reply to
Bart Van Assche, 2021-12-10
On Fri, Dec 10, 2021 at 09:29:41AM -0800, Bart Van Assche wrote:
(c) This encoding enforces the restriction that data unit sizes are a power of
    two. Is there anything fundamental in encryption that restricts data unit
    sizes to a power of two? I don't know the answer myself.
Well, the data unit size has to evenly divide the size of the request (for
requests that have an encryption context which specifies that data unit size).
So if the data unit size was, say, 1536 bytes, then all requests would have to
be multiples of 1536 bytes.  That has a factor of 3 in it, so it would be
impossible to make any power-of-2 size request.  That sounds pretty impractical;
it's hard to see how and why we would ever support such a thing.

- Eric
Thread (19 messages) 19 messages, 4 authors, last reply 2021-12-14
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