summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/md-6.c
blob: 5ed36c5460dc36bb53d4b24b0fff279f715f40ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sha1.h>

const unsigned char data[] = "1234567890abcdefghijklmnopqrstuvwxyz";

int
main(int argc, char **argv)
{
	SHA1_CTX ctx;
	char ret[20];

	SHA1Init(&ctx);
	SHA1Data(data, sizeof data - 1, ret);
	printf("%s\n", ret);
}