xref: /openbsd/regress/gnu/egcs/gcc-bounds/md-6.c (revision 3cab2bb3)
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <sys/types.h>
4 #include <sha1.h>
5 
6 const unsigned char data[] = "1234567890abcdefghijklmnopqrstuvwxyz";
7 
8 int
9 main(int argc, char **argv)
10 {
11 	SHA1_CTX ctx;
12 	char ret[20];
13 
14 	SHA1Init(&ctx);
15 	SHA1Data(data, sizeof data - 1, ret);
16 	printf("%s\n", ret);
17 }
18