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>
Esse commit está contido em:
Horia Geantă
2016-11-22 15:44:10 +02:00
commit de Herbert Xu
commit 6655cb8e56
4 arquivos alterados com 53 adições e 45 exclusões

Ver arquivo

@@ -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);