2 * \brief Header SHA1 functions.
4 * \author Carsten Weinhold <weinhold@os.inf.tu-dresden.de>
7 * Copyright (C) 2006 Carsten Weinhold <weinhold@os.inf.tu-dresden.de>
8 * Technische Universitaet Dresden, Operating Systems Research Group
10 * This file is part of the libcrypto package, which is distributed under
11 * the terms of the GNU General Public Licence 2. Please see the
12 * COPYING file for details.
15 #ifndef __CRYPTO_SHA_H
16 #define __CRYPTO_SHA_H
18 #include "private/misc.h"
22 /* generic includes */
23 #include <sys/types.h>
26 #include "private/digest.h"
27 #include "private/sha1_linux.h"
28 #include "private/sha1.h"
29 #include "private/sha.h"
30 #include "private/sha_openssl.h"
33 * ****************************************************************
36 /* SHA-1 uses 160 bit hashes */
37 #define SHA1_DIGEST_SIZE 20
40 * ****************************************************************
45 SHA1Context __sha1_ref_ctx;
46 struct sha1_ctx __sha1_linux_ctx;
47 struct shash_desc __sha1_linux_new_ctx;
48 struct Context __sha1_oslo_ctx;
49 SHA_CTX __sha1_openssl;
52 typedef char crypto_sha1_digest_t[SHA1_DIGEST_SIZE];
55 * ****************************************************************
58 extern crypto_digest_setup_fn_t sha1_digest_setup;
59 extern crypto_digest_update_fn_t sha1_digest_update;
60 extern crypto_digest_final_fn_t sha1_digest_final;
64 #endif /* __CRYPTO_SHA_H */