[BACK]Return to sha1.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl / crypt / sha1

File: [local] / OpenXM / src / ox_ntl / crypt / sha1 / sha1.h (download)

Revision 1.6, Mon Sep 20 00:10:24 2004 UTC (19 years, 8 months ago) by iwane
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.5: +2 -2 lines

include <inttypes.h>

/* $OpenXM: OpenXM/src/ox_ntl/crypt/sha1/sha1.h,v 1.6 2004/09/20 00:10:24 iwane Exp $ */

#ifndef __SHA1_H__
#define __SHA1_H__

#include <inttypes.h>

#ifdef __cplusplus
extern "C" {
#endif

int	sha1(unsigned char *, const unsigned char *, size_t _len);
int	sha1_h(unsigned char *, const unsigned char *, size_t _len, const uint32_t *_h);

int	fsha1(unsigned char *, int _fd);

void	sha1_md	(uint32_t *, const unsigned char *);


#ifdef __cplusplus
}
#endif

#ifdef _WITH_NTL_

#include <NTL/ZZ.h>

int	ntl_sha1(ZZ &, const ZZ &);
int	ntl_sha1_h(ZZ &, const ZZ &, uint32_t *);

#endif /* _WITH_NTL */


#endif /* __SHA1_H__ */