A netlink-based user-space crypto API
Posted Oct 24, 2010 21:58 UTC (Sun) by alonz
In reply to: A netlink-based user-space crypto API
Parent article: A netlink-based user-space crypto API
I refer to "zero-copy" in rather loose terms—not copying more than is necessary. In particular, if the application chooses input/output buffers that are suitable for DMA, I would like to perform a single DMA translation (many cryptography engines have dual-channel DMA engines, so they can read the source buffer via DMA, transform it, and write the output to the target buffer in a single pass).
As for the specific API—all proposals I have seen so far look like hacks, and are rather brittle (e.g. the aio_read solution would require the driver to keep userspace pointers for longer than a single system call, which is generally considered bad taste AFAIK).
to post comments)