2012-06-23 08:48:45 +08:00
|
|
|
/*
|
|
|
|
* CAAM/SEC 4.x definitions for handling key-generation jobs
|
|
|
|
*
|
|
|
|
* Copyright 2008-2011 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct split_key_result {
|
|
|
|
struct completion completion;
|
|
|
|
int err;
|
|
|
|
};
|
|
|
|
|
|
|
|
void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
|
|
|
|
|
2013-03-27 07:10:14 +08:00
|
|
|
int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
|
2012-06-23 08:48:45 +08:00
|
|
|
int split_key_pad_len, const u8 *key_in, u32 keylen,
|
|
|
|
u32 alg_op);
|