Merge tag 'staging-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[deliverable/linux.git] / tools / build / feature / test-libcrypto.c
1 #include <openssl/sha.h>
2 #include <openssl/md5.h>
3
4 int main(void)
5 {
6 MD5_CTX context;
7 unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH];
8 unsigned char dat[] = "12345";
9
10 MD5_Init(&context);
11 MD5_Update(&context, &dat[0], sizeof(dat));
12 MD5_Final(&md[0], &context);
13
14 SHA1(&dat[0], sizeof(dat), &md[0]);
15
16 return 0;
17 }
This page took 0.03097 seconds and 6 git commands to generate.