diff options
author | Horia Geantă | 2016-11-22 15:44:10 +0200 |
---|---|---|
committer | Herbert Xu | 2016-11-28 21:23:23 +0800 |
commit | 6655cb8e56691fab3291c83d2afd6f1fd0776ecf (patch) | |
tree | 6105d8bbd7edb83bc13152ffd2f2e817aa36e07a /drivers/crypto/caam/key_gen.h | |
parent | 8cea7b66b821fd914aa26a2af156604f9ef5f709 (diff) |
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.h | 3 |
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); |