MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / Utility / sha1.h
blobe102d1d8ecf7d6eb599146ef318b3e96fec4c4f1
1 #ifndef SHA1_H
2 #define SHA1_H
4 #define A_SHA_DIGEST_LEN 20
6 typedef struct
8 unsigned long H[5];
9 unsigned long W[80];
10 int lenW;
11 unsigned long sizeHi,sizeLo;
12 } A_SHA_CTX;
14 void A_SHAInit(A_SHA_CTX *ctx);
15 void A_SHAUpdate(A_SHA_CTX *ctx, unsigned char *dataIn, int len);
16 void A_SHAFinal(A_SHA_CTX *ctx, unsigned char hashout[20]);
18 #endif /* SHA1_H */