]>
git.ipfire.org Git - thirdparty/mdadm.git/blob - SHA1.c
2 /* Simple wrapper for code in sha1.c, to
3 * provide SHA1() interface as provided by opensll.
4 * I do this because I cannot get SHA1 when staticly linking.
6 * sha1.c sha1.h md5.h all copied from coreutils-5.94
11 unsigned char *SHA1(unsigned char *buf
, int len
, unsigned char *dest
)
13 static unsigned char defdest
[20];
14 if (dest
== NULL
) dest
= defdest
;
16 return (unsigned char *)sha1_buffer((const char*)buf
,