From 405f2b19164899d95ee86533b072b42f0a3a6482 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 10 Nov 2008 01:38:10 +0100 Subject: [PATCH] Remove sha1.c This was never needed. --- sha1.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 sha1.c 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); -} -- 2.39.2