summaryrefslogtreecommitdiffstats
path: root/crypto/internal.h
blob: f482654f637237644ae76185fbec9248c3368da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * (C) Copyright 2015 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 *
 * GPL v2 only
 */

#ifdef CONFIG_DIGEST_HMAC
int digest_hmac_register(struct digest_algo *algo, unsigned int pad_length);
#else
static inline int digest_hmac_register(struct digest_algo *algo,
				       unsigned int pad_length)
{
	return 0;
}
#endif

int digest_generic_verify(struct digest *d, const unsigned char *md);