1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * Copyright (C) 2019 - 2021
4  *
5  * Richard van Schagen <vschagen@icloud.com>
6  * Christian Marangi <ansuelsmth@gmail.com
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