blob: c5588f6d8109ee7247f0bab5c52c06db7dfb41b0 [file] [log] [blame]
Yuan Kang4c1ec1f2012-06-22 19:48:45 -05001/*
2 * CAAM/SEC 4.x definitions for handling key-generation jobs
3 *
4 * Copyright 2008-2011 Freescale Semiconductor, Inc.
5 *
6 */
7
8struct split_key_result {
9 struct completion completion;
10 int err;
11};
12
13void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
14
Kim Phillips66b3e882013-03-26 18:10:14 -050015int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
Yuan Kang4c1ec1f2012-06-22 19:48:45 -050016 int split_key_pad_len, const u8 *key_in, u32 keylen,
17 u32 alg_op);