Annotation of OpenXM/src/ox_ntl/crypt/sha1/sha1.h, Revision 1.4
1.4 ! iwane 1: /* $OpenXM: OpenXM/src/ox_ntl/crypt/sha1/sha1.h,v 1.3 2004/05/16 15:02:39 iwane Exp $ */
1.1 iwane 2:
3: #ifndef __SHA1_H__
4: #define __SHA1_H__
5:
1.4 ! iwane 6: #include <sys/types.h>
! 7:
1.1 iwane 8: #ifdef __cplusplus
9: extern "C" {
10: #endif
11:
1.4 ! iwane 12: int sha1(unsigned char *, const unsigned char *, size_t _len);
! 13: int sha1_h(unsigned char *, const unsigned char *, size_t _len, const uint32_t *_h);
! 14:
! 15: int fsha1(unsigned char *, int _fd);
1.3 iwane 16:
1.4 ! iwane 17: void sha1_md (uint32_t *, const unsigned char *);
1.1 iwane 18:
19:
20: #ifdef _WITH_NTL_
21:
22: int ntl_sha1(ZZ &, const ZZ &);
1.4 ! iwane 23: int ntl_sha1_h(ZZ &, const ZZ &, uint32_t *);
1.1 iwane 24:
25: #endif /* _WITH_NTL */
26:
27: #ifdef __cplusplus
28: }
29: #endif
30:
31: #endif /* __SHA1_H__ */
32:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>