summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam/key_gen.h
blob: 8ce751b9a4ad6c8b4401a0c3500c3d502024007f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * CAAM/SEC 4.x definitions for handling key-generation jobs
 *
 * Copyright 2008-2012 Freescale Semiconductor, Inc.
 *
 */
#ifndef _KEY_GEN_H_
#define _KEY_GEN_H_
struct split_key_result {
	struct completion completion;
	int err;
};

void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);

int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
		    int split_key_pad_len, const u8 *key_in, u32 keylen,
		    u32 alg_op);
#endif