version 1.3, 2004/05/16 15:02:39 |
version 1.4, 2004/06/20 10:59:01 |
|
|
/* $OpenXM: OpenXM/src/ox_ntl/crypt/sha1/sha1.h,v 1.2 2004/03/25 13:34:19 iwane Exp $ */ |
/* $OpenXM: OpenXM/src/ox_ntl/crypt/sha1/sha1.h,v 1.3 2004/05/16 15:02:39 iwane Exp $ */ |
|
|
#ifndef __SHA1_H__ |
#ifndef __SHA1_H__ |
#define __SHA1_H__ |
#define __SHA1_H__ |
|
|
|
#include <sys/types.h> |
|
|
#ifdef __cplusplus |
#ifdef __cplusplus |
extern "C" { |
extern "C" { |
#endif |
#endif |
|
|
int sha1(unsigned char *, const unsigned char *, int len); |
int sha1(unsigned char *, const unsigned char *, size_t _len); |
int sha1_h(unsigned char *, const unsigned char *, int len, const unsigned int *_h); |
int sha1_h(unsigned char *, const unsigned char *, size_t _len, const uint32_t *_h); |
|
|
void sha1_md (unsigned int *, const unsigned char *); |
int fsha1(unsigned char *, int _fd); |
|
|
|
void sha1_md (uint32_t *, const unsigned char *); |
|
|
|
|
#ifdef _WITH_NTL_ |
#ifdef _WITH_NTL_ |
|
|
int ntl_sha1(ZZ &, const ZZ &); |
int ntl_sha1(ZZ &, const ZZ &); |
int ntl_sha1_h(ZZ &, const ZZ &, unsigned int *); |
int ntl_sha1_h(ZZ &, const ZZ &, uint32_t *); |
|
|
#endif /* _WITH_NTL */ |
#endif /* _WITH_NTL */ |
|
|