summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-libcrypto.c
blob: bd79dc7f28d3680f5a3ed1247e55d1bea9bc8ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <openssl/sha.h>
#include <openssl/md5.h>

int main(void)
{
	MD5_CTX context;
	unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH];
	unsigned char dat[] = "12345";

	MD5_Init(&context);
	MD5_Update(&context, &dat[0], sizeof(dat));
	MD5_Final(&md[0], &context);

	SHA1(&dat[0], sizeof(dat), &md[0]);

	return 0;
}
ef51787af908e9856b1eed314bc00'>patch) tree9675310b89d0f6fb1f7bd9423f0638c4ee5226fd /include/crypto/scatterwalk.h parent13bed58ce8748d430a26e353a09b89f9d613a71f (diff)parent1b5b42216469b05ef4b5916cb40b127dfab1da88 (diff)
Merge branch 'topic/error' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-fixed
Diffstat (limited to 'include/crypto/scatterwalk.h')