Thread (37 messages) 37 messages, 6 authors, 2017-04-18

Re: [PATCH 09/22] dm-crypt: Make use of the new sg_map helper in 4 call sites

From: Logan Gunthorpe <logang@deltatee.com>
Date: 2017-04-14 16:04:05
Also in: dri-devel, intel-gfx, linux-crypto, linux-media, linux-mmc, linux-raid, linux-rdma, linux-scsi, lkml, nvdimm


On 14/04/17 02:39 AM, Christoph Hellwig wrote:
On Thu, Apr 13, 2017 at 04:05:22PM -0600, Logan Gunthorpe wrote:
quoted
Very straightforward conversion to the new function in all four spots.
I think the right fix here is to switch dm-crypt to the ahash API
that takes a scatterlist.
Hmm, well I'm not sure I understand the code enough to make that
conversion. But I was looking at it. One tricky bit seems to be that
crypt_iv_lmk_one adds a seed, skips the first 16 bytes in the page and
then hashes another 16 bytes from other data. What would you do
construct a new sgl for it and pass it to the ahash api?

The other thing is crypt_iv_lmk_post also seems to modify the page after
the hash with a  crypto_xor so you'd still need at least one kmap in there.

Logan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help