1.1 --- a/sha1.h Sat Dec 29 16:43:34 2007 -0500
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,45 +0,0 @@
1.4 -/*
1.5 - * The contents of this file are subject to the Mozilla Public
1.6 - * License Version 1.1 (the "License"); you may not use this file
1.7 - * except in compliance with the License. You may obtain a copy of
1.8 - * the License at http://www.mozilla.org/MPL/
1.9 - *
1.10 - * Software distributed under the License is distributed on an "AS
1.11 - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
1.12 - * implied. See the License for the specific language governing
1.13 - * rights and limitations under the License.
1.14 - *
1.15 - * The Original Code is SHA 180-1 Header File
1.16 - *
1.17 - * The Initial Developer of the Original Code is Paul Kocher of
1.18 - * Cryptography Research. Portions created by Paul Kocher are
1.19 - * Copyright (C) 1995-9 by Cryptography Research, Inc. All
1.20 - * Rights Reserved.
1.21 - *
1.22 - * Contributor(s):
1.23 - *
1.24 - * Paul Kocher
1.25 - *
1.26 - * Alternatively, the contents of this file may be used under the
1.27 - * terms of the GNU General Public License Version 2 or later (the
1.28 - * "GPL"), in which case the provisions of the GPL are applicable
1.29 - * instead of those above. If you wish to allow use of your
1.30 - * version of this file only under the terms of the GPL and not to
1.31 - * allow others to use your version of this file under the MPL,
1.32 - * indicate your decision by deleting the provisions above and
1.33 - * replace them with the notice and other provisions required by
1.34 - * the GPL. If you do not delete the provisions above, a recipient
1.35 - * may use your version of this file under either the MPL or the
1.36 - * GPL.
1.37 - */
1.38 -
1.39 -typedef struct {
1.40 - unsigned int H[5];
1.41 - unsigned int W[80];
1.42 - int lenW;
1.43 - unsigned int sizeHi,sizeLo;
1.44 -} SHA_CTX;
1.45 -
1.46 -void SHA1_Init(SHA_CTX *ctx);
1.47 -void SHA1_Update(SHA_CTX *ctx, const void *dataIn, int len);
1.48 -void SHA1_Final(unsigned char hashout[20], SHA_CTX *ctx);