[5/5] [CRYPTO] Optimise kmap calls in crypt()
Fruhwirth Clemens
clemens at endorphin.org
Mon Mar 21 11:30:59 UTC 2005
On Mon, 2005-03-21 at 20:53 +1100, Herbert Xu wrote:
> Perform kmap once (or twice if the buffer is not aligned correctly)
> per page in crypt() instead of the current code which does it once
> per block. Consequently it will yield once per page instead of once
> per block.
Thanks for your work, Herbert.
Applying all patches results in a "does not work for me". The decryption
result is different from the original and my LUKS managed partition
refuses to mount.
I assume you have a test environment already setup, so I would suggest
to find out up to which patch the following test succeeds (should be
paste-able)
cd /tmp
dd if=/dev/zero of=test-crypt count=100
losetup /dev/loop5 /tmp/test-crypt
echo 0 100 crypt aes-plain 0123456789abcdef0123456789abcdef 0 /dev/loop5 0 | dmsetup create test-map
sha1sum /dev/mapper/test-map
Result:
368d017dbdb4299ed7f27d3fc815442f7e438865 /dev/mapper/test-map
Cheers,
--
Fruhwirth Clemens - http://clemens.endorphin.org
for robots: sp4mtrap at endorphin.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logix.cz/pipermail/cryptoapi/attachments/20050321/be035171/attachment.pgp
More information about the CryptoAPI
mailing list