diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2018-01-22 09:27:01 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-15 23:26:40 +0800 |
commit | 63ee04c8b491ee148489347e7da9fbfd982ca2bb (patch) | |
tree | cb983e6d07e105a71918f47804e966fd5f9f87a0 /drivers/crypto/ccree/cc_buffer_mgr.h | |
parent | 4c3f97276e156820a0433bf7b59a4df1100829ae (diff) | |
download | linux-63ee04c8b491ee148489347e7da9fbfd982ca2bb.tar.bz2 |
crypto: ccree - add skcipher support
Add CryptoCell skcipher support
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_buffer_mgr.h')
-rw-r--r-- | drivers/crypto/ccree/cc_buffer_mgr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/crypto/ccree/cc_buffer_mgr.h b/drivers/crypto/ccree/cc_buffer_mgr.h index 2a2eba68e0f9..614c5c5b2721 100644 --- a/drivers/crypto/ccree/cc_buffer_mgr.h +++ b/drivers/crypto/ccree/cc_buffer_mgr.h @@ -40,6 +40,14 @@ int cc_buffer_mgr_init(struct cc_drvdata *drvdata); int cc_buffer_mgr_fini(struct cc_drvdata *drvdata); +int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, + unsigned int ivsize, unsigned int nbytes, + void *info, struct scatterlist *src, + struct scatterlist *dst, gfp_t flags); + +void cc_unmap_cipher_request(struct device *dev, void *ctx, unsigned int ivsize, + struct scatterlist *src, struct scatterlist *dst); + int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, struct scatterlist *src, unsigned int nbytes, bool do_update, gfp_t flags); |