zfsrogue/spl-crypto — pull request #2 by lundman (2012-11-15 08:50:40+00:00)
Title: Fix scatterlists temporarily with tmp buffer

now we allocate a new linear memory for output, then call
sg_copy_from_buffer() to copy back to scatterlist. Note that using
scatterwalk_map_and_copy() instead will cause panic.

This fixes the recordsize=512 limit, all recordsizes work.

Fixed crypto_map_buffers() which took static 2 buffers to be dynamic. It
turns out ZFS will chain events, and was using over 28 on my tests.

ZFS-crypto can now do a simple bonnie run without crashing.

Created MACRO to crypto debug messages. Default is off. Removed old
cipher code, but left 3 alternate calls. AEAD (default), blkcipher, and
memcopy.

TODO: Solve the panic which scatterlists to remove the need to allocate
dst temporary buffer.