Last change
on this file since 2087159 was
df1694b,
checked in by Wilmer van der Gaast <wilmer@…>, at 2006-06-25T12:15:42Z
|
Moving all generic files to lib/ instead of having some in / and some in
protocols/, and adding RC4 code.
|
-
Property mode set to
100644
|
File size:
554 bytes
|
Line | |
---|
1 | #ifndef __SHA_H__ |
---|
2 | #define __SHA_H__ |
---|
3 | |
---|
4 | #include <gmodule.h> |
---|
5 | |
---|
6 | G_MODULE_EXPORT int strprintsha(char *dest, int *hashval); |
---|
7 | |
---|
8 | typedef struct { |
---|
9 | guint32 H[5]; |
---|
10 | guint32 W[80]; |
---|
11 | int lenW; |
---|
12 | guint32 sizeHi,sizeLo; |
---|
13 | } SHA_CTX; |
---|
14 | |
---|
15 | G_MODULE_EXPORT void shaInit(SHA_CTX *ctx); |
---|
16 | G_MODULE_EXPORT void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len); |
---|
17 | G_MODULE_EXPORT void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]); |
---|
18 | G_MODULE_EXPORT void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]); |
---|
19 | G_MODULE_EXPORT char *shahash(char *str); |
---|
20 | |
---|
21 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.