lkml.org 
[lkml]   [2021]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 3/3] blk-crypto: show crypto capabilities in sysfs
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

\
 
 \ /
  Last update: 2021-12-10 18:46    [W:0.077 / U:4.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site