diff options
author | Joel Fernandes <joelf@ti.com> | 2013-08-18 02:42:32 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-08-21 11:28:05 (GMT) |
commit | 6242332ff2f3431c4fb6f4b21581f38f16569c13 (patch) | |
tree | 21213c27d44ec7a100abeb984d92acffad3798df /drivers/mtd/maps/pxa2xx-flash.c | |
parent | 1801ad9483b796271a985ab71cfe26f7bbeae6dd (diff) | |
download | linux-fsl-qoriq-6242332ff2f3431c4fb6f4b21581f38f16569c13.tar.xz |
crypto: omap-aes - Add support for cases of unaligned lengths
For cases where offset/length of on any page of the input SG is not aligned by
AES_BLOCK_SIZE, we copy all the pages from the input SG list into a contiguous
buffer and prepare a single element SG list for this buffer with length as the
total bytes to crypt.
This is requried for cases such as when an SG list of 16 bytes total size
contains 16 pages each containing 1 byte. DMA using the direct buffers of such
instances is not possible.
For this purpose, we first detect if the unaligned case and accordingly
allocate enough number of pages to satisfy the request and prepare SG lists.
We then copy data into the buffer, and copy data out of it on completion.
Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/mtd/maps/pxa2xx-flash.c')
0 files changed, 0 insertions, 0 deletions