Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/crypto/inside-secure/eip93/eip93-common.h
26285 views
1
/* SPDX-License-Identifier: GPL-2.0
2
*
3
* Copyright (C) 2019 - 2021
4
*
5
* Richard van Schagen <[email protected]>
6
* Christian Marangi <[email protected]
7
*/
8
9
#ifndef _EIP93_COMMON_H_
10
#define _EIP93_COMMON_H_
11
12
void *eip93_get_descriptor(struct eip93_device *eip93);
13
int eip93_put_descriptor(struct eip93_device *eip93, struct eip93_descriptor *desc);
14
15
void eip93_set_sa_record(struct sa_record *sa_record, const unsigned int keylen,
16
const u32 flags);
17
18
int eip93_parse_ctrl_stat_err(struct eip93_device *eip93, int err);
19
20
int eip93_hmac_setkey(u32 ctx_flags, const u8 *key, unsigned int keylen,
21
unsigned int hashlen, u8 *ipad, u8 *opad,
22
bool skip_ipad);
23
24
#endif /* _EIP93_COMMON_H_ */
25
26