sha1dgst.c revision 160814
1208963Srdivacky/* crypto/sha/sha1dgst.c */
2208963Srdivacky/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3263508Sdim * All rights reserved.
4208963Srdivacky *
5263508Sdim * This package is an SSL implementation written
6208963Srdivacky * by Eric Young (eay@cryptsoft.com).
7263508Sdim * The implementation was written so as to conform with Netscapes SSL.
8263508Sdim *
9263508Sdim * This library is free for commercial and non-commercial use as long as
10263508Sdim * the following conditions are aheared to.  The following conditions
11266715Sdim * apply to all code found in this distribution, be it the RC4, RSA,
12263508Sdim * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13243830Sdim * included with this distribution is covered by the same copyright terms
14243830Sdim * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15243830Sdim *
16239469Sdim * Copyright remains Eric Young's, and as such any Copyright notices in
17235058Sdim * the code are not to be removed.
18221345Sdim * If this package is used in a product, Eric Young should be given attribution
19235058Sdim * as the author of the parts of the library used.
20235058Sdim * This can be in the form of a textual message at program startup or
21234353Sdim * in documentation (online or textual) provided with the package.
22221345Sdim *
23243830Sdim * Redistribution and use in source and binary forms, with or without
24235058Sdim * modification, are permitted provided that the following conditions
25239469Sdim * are met:
26221345Sdim * 1. Redistributions of source code must retain the copyright
27235058Sdim *    notice, this list of conditions and the following disclaimer.
28221345Sdim * 2. Redistributions in binary form must reproduce the above copyright
29210299Sed *    notice, this list of conditions and the following disclaimer in the
30210299Sed *    documentation and/or other materials provided with the distribution.
31235058Sdim * 3. All advertising materials mentioning features or use of this software
32221345Sdim *    must display the following acknowledgement:
33210299Sed *    "This product includes cryptographic software written by
34235058Sdim *     Eric Young (eay@cryptsoft.com)"
35249423Sdim *    The word 'cryptographic' can be left out if the rouines from the library
36249423Sdim *    being used are not cryptographic related :-).
37243830Sdim * 4. If you include any Windows specific code (or a derivative thereof) from
38263508Sdim *    the apps directory (application code) you must include an acknowledgement:
39221345Sdim *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40263508Sdim *
41210299Sed * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42221345Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43221345Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44239469Sdim * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45263508Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46263508Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47263508Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48263508Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49208963Srdivacky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50241298Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed.  i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#include <openssl/opensslconf.h>
60#if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA)
61
62#undef  SHA_0
63#define SHA_1
64
65#include <openssl/opensslv.h>
66
67const char *SHA1_version="SHA1" OPENSSL_VERSION_PTEXT;
68
69/* The implementation is in ../md32_common.h */
70
71#include "sha_locl.h"
72
73#endif
74
75