md-6.c revision 1.1
1#include <stdio.h> 2#include <stdlib.h> 3#include <sys/types.h> 4#include <sha1.h> 5 6const unsigned char data[] = "1234567890abcdefghijklmnopqrstuvwxyz"; 7 8int 9main(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