summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/key_gen.h
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2016-11-22 15:44:10 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-28 21:23:23 +0800
commit6655cb8e56691fab3291c83d2afd6f1fd0776ecf (patch)
tree6105d8bbd7edb83bc13152ffd2f2e817aa36e07a /drivers/crypto/caam/key_gen.h
parent8cea7b66b821fd914aa26a2af156604f9ef5f709 (diff)
downloadlinux-6655cb8e56691fab3291c83d2afd6f1fd0776ecf.tar.bz2
crypto: caam - consolidate split key length computation
Move split key length and padded length computation from caamalg.c and caamhash.c to key_gen.c. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/key_gen.h')
-rw-r--r--drivers/crypto/caam/key_gen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/caam/key_gen.h b/drivers/crypto/caam/key_gen.h
index e87483c6057b..4628f389eb64 100644
--- a/drivers/crypto/caam/key_gen.h
+++ b/drivers/crypto/caam/key_gen.h
@@ -13,4 +13,5 @@ struct split_key_result {
void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
int gen_split_key(struct device *jrdev, u8 *key_out,
- struct alginfo * const adata, const u8 *key_in, u32 keylen);
+ struct alginfo * const adata, const u8 *key_in, u32 keylen,
+ int max_keylen);