xref: /openbmc/linux/drivers/crypto/caam/key_gen.h (revision 8730046c)
1 /*
2  * CAAM/SEC 4.x definitions for handling key-generation jobs
3  *
4  * Copyright 2008-2011 Freescale Semiconductor, Inc.
5  *
6  */
7 
8 struct split_key_result {
9 	struct completion completion;
10 	int err;
11 };
12 
13 void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
14 
15 int gen_split_key(struct device *jrdev, u8 *key_out,
16 		  struct alginfo * const adata, const u8 *key_in, u32 keylen,
17 		  int max_keylen);
18