Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/sha1.h

Go to the documentation of this file.
00001 
00007 /*
00008  * Copyright (c) 1997, 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
00009  *
00010  * Author: Bob Deblier <bob@virtualunlimited.com>
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 #ifndef _SHA1_H
00029 #define _SHA1_H
00030 
00031 #include "beecrypt.h"
00032 
00035 typedef struct
00036 {
00037         uint32 h[5];
00038         uint32 data[80];
00039         uint64 length;
00040         uint8  offset;
00041 } sha1Param;
00042 
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046 
00049 /*@observer@*/ /*@checked@*/
00050 extern BEECRYPTAPI const hashFunction sha1;
00051 
00054 BEECRYPTAPI
00055 void sha1Process(sha1Param* p)
00056         /*@modifies p */;
00057 
00060 BEECRYPTAPI /*@unused@*/
00061 int  sha1Reset  (sha1Param* p)
00062         /*@modifies p */;
00063 
00066 BEECRYPTAPI /*@unused@*/
00067 int  sha1Update (sha1Param* p, const byte* data, int size)
00068         /*@modifies p */;
00069 
00072 BEECRYPTAPI /*@unused@*/
00073 int  sha1Digest (sha1Param* p, /*@out@*/ uint32* data)
00074         /*@modifies p, data */;
00075 
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 
00080 #endif

Generated on Tue Sep 17 15:56:37 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002