From: Andre Noll Date: Mon, 10 Nov 2008 00:38:10 +0000 (+0100) Subject: Remove sha1.c X-Git-Tag: v0.0.5~1^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=405f2b19164899d95ee86533b072b42f0a3a6482 Remove sha1.c This was never needed. --- diff --git a/sha1.c b/sha1.c deleted file mode 100644 index 1c3d00f..0000000 --- a/sha1.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2007-2008 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ - -/** \file sha1.c Secure Hash Algorithm, provided by openssl. */ - -#include "adu.h" -#include - -/** - * Compute the sha1 hash. - * - * \param data Pointer to the data to compute the hash value from. - * \param len The length of \a data in bytes. - * \param sha1 Result pointer. - * - * \a sha1 must point to an area at least 20 bytes large. - * - * \sa sha(3), openssl(1). - * */ -void sha1_hash(const char *data, unsigned long len, unsigned char *sha1) -{ - SHA_CTX c; - SHA1_Init(&c); - SHA1_Update(&c, data, len); - SHA1_Final(sha1, &c); -}