diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-04-23 12:26:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-28 13:17:54 +0300 |
commit | 302ef8ebb4b2ca10b06268c2ef5fbc4d1f061a51 (patch) | |
tree | 29d9974581469b0ba7d395213143c73b5fff1f25 /drivers/staging/ccree/ssi_buffer_mgr.h | |
parent | 50cfbbb7e627b868f3cf6882d2a9210bb8428737 (diff) | |
download | linux-302ef8ebb4b2ca10b06268c2ef5fbc4d1f061a51.tar.xz |
staging: ccree: add skcipher support
Add CryptoCell skcipher support
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_buffer_mgr.h')
-rw-r--r-- | drivers/staging/ccree/ssi_buffer_mgr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/staging/ccree/ssi_buffer_mgr.h b/drivers/staging/ccree/ssi_buffer_mgr.h index cadb853b807b..41412b26f41a 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.h +++ b/drivers/staging/ccree/ssi_buffer_mgr.h @@ -55,6 +55,22 @@ int ssi_buffer_mgr_init(struct ssi_drvdata *drvdata); int ssi_buffer_mgr_fini(struct ssi_drvdata *drvdata); +int ssi_buffer_mgr_map_blkcipher_request( + struct ssi_drvdata *drvdata, + void *ctx, + unsigned int ivsize, + unsigned int nbytes, + void *info, + struct scatterlist *src, + struct scatterlist *dst); + +void ssi_buffer_mgr_unmap_blkcipher_request( + struct device *dev, + void *ctx, + unsigned int ivsize, + struct scatterlist *src, + struct scatterlist *dst); + int ssi_buffer_mgr_map_hash_request_final(struct ssi_drvdata *drvdata, void *ctx, struct scatterlist *src, unsigned int nbytes, bool do_update); int ssi_buffer_mgr_map_hash_request_update(struct ssi_drvdata *drvdata, void *ctx, struct scatterlist *src, unsigned int nbytes, unsigned int block_size); |