]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
4c1ec1f9 YK |
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 | ||
db57656b | 16 | int gen_split_key(struct device *jrdev, u8 *key_out, |
6655cb8e HG |
17 | struct alginfo * const adata, const u8 *key_in, u32 keylen, |
18 | int max_keylen); |