2 * FIPS-180-1 compliant SHA-1 implementation
6 * Copyright (C) 2001-2003 Christophe Devine
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * Changed to use guint instead of uint 2004 by Anders Broman
23 * Original code found at http://www.cr0.net:8040/code/crypto/sha1/
24 * References: http://www.ietf.org/rfc/rfc3174.txt?number=3174
39 void sha1_starts( sha1_context *ctx );
40 void sha1_update( sha1_context *ctx, const guint8 *input, guint32 length );
41 void sha1_finish( sha1_context *ctx, guint8 digest[20] );
42 void sha1_hmac( const guint8 *key, guint32 keylen, const guint8 *buf, guint32 buflen,
45 #endif /* crypt-sha1.h */