summaryrefslogtreecommitdiff
path: root/include/crypto/internal/cryptouser.h
blob: 3492ab42eefba230cfcbf408669acd16a51734e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0 */
#include <net/netlink.h>

struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact);

#ifdef CONFIG_CRYPTO_STATS
int crypto_dump_reportstat(struct sk_buff *skb, struct netlink_callback *cb);
int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs);
int crypto_dump_reportstat_done(struct netlink_callback *cb);
#else
static int crypto_dump_reportstat(struct sk_buff *skb, struct netlink_callback *cb)
{
	return -ENOTSUPP;
}

static int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs)
{
	return -ENOTSUPP;
}

static int crypto_dump_reportstat_done(struct netlink_callback *cb)
{
	return -ENOTSUPP;
}
#endif