summaryrefslogtreecommitdiff
path: root/crypto/xcbc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-03-24 14:35:34 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2007-05-02 14:38:30 +1000
commit93bea8b7212e557a493d6e41430a71af7a882834 (patch)
tree3489f9f11b0a599e2b18bebcda4880fc146a5ce9 /crypto/xcbc.c
parent4bb52188251a2a200f2d9e399cdfc7d009bc8453 (diff)
downloadlinux-crypto-93bea8b7212e557a493d6e41430a71af7a882834.tar.gz
linux-crypto-93bea8b7212e557a493d6e41430a71af7a882834.zip
[CRYPTO] api: Add async block cipher interface
This patch adds the frontend interface for asynchronous block ciphers. In addition to the usual block cipher parameters, there is a callback function pointer and a data pointer. The callback will be invoked only if the encrypt/decrypt handlers return -EINPROGRESS. In other words, if the return value of zero the completion handler (or the equivalent code) needs to be invoked by the caller. The request structure is allocated and freed by the caller. Its size is determined by calling crypto_ablkcipher_reqsize(). The helpers ablkcipher_request_alloc/ablkcipher_request_free can be used to manage the memory for a request. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/xcbc.c')
0 files changed, 0 insertions, 0 deletions