GNU Linux-libre 4.14.303-gnu1
[releases.git] / drivers / crypto / caam / key_gen.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * CAAM/SEC 4.x definitions for handling key-generation jobs
4  *
5  * Copyright 2008-2011 Freescale Semiconductor, Inc.
6  *
7  */
8
9 struct split_key_result {
10         struct completion completion;
11         int err;
12 };
13
14 void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
15
16 int gen_split_key(struct device *jrdev, u8 *key_out,
17                   struct alginfo * const adata, const u8 *key_in, u32 keylen,
18                   int max_keylen);