summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.hengli.com.au>2010-11-26 20:58:24 +0800
committerMiloslav Trmač <mitr@redhat.com>2010-11-28 04:54:33 +0100
commit3298f4cab7d2502f9af48722f186e1c7400feba7 (patch)
tree21a5c4c4039b7e347c8e584b3db64a36fca364f4 /fs/jbd2/commit.c
parentc99d5ffce2f479f442482c4f212a0efa210ba140 (diff)
downloadkernel-crypto-3298f4cab7d2502f9af48722f186e1c7400feba7.tar.gz
kernel-crypto-3298f4cab7d2502f9af48722f186e1c7400feba7.tar.xz
kernel-crypto-3298f4cab7d2502f9af48722f186e1c7400feba7.zip
crypto: algif_skcipher - User-space interface for skcipher operations
crypto: algif_skcipher - User-space interface for skcipher operations This patch adds the af_alg plugin for symmetric key ciphers, corresponding to the ablkcipher kernel operation type. Keys can optionally be set through the setsockopt interface. Once a sendmsg call occurs without MSG_MORE no further writes may be made to the socket until all previous data has been read. IVs and and whether encryption/decryption is performed can be set through the setsockopt interface or as a control message to sendmsg. The interface is completely synchronous, all operations are carried out in recvmsg(2) and will complete prior to the system call returning. The splice(2) interface support reading the user-space data directly without copying (except that the Crypto API itself may copy the data if alignment is off). The recvmsg(2) interface supports directly writing to user-space without additional copying, i.e., the kernel crypto interface will receive the user-space address as its output SG list. Thakns to Miloslav Trmac for reviewing this and contributing fixes and improvements. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions