25 } ; |
25 } ; |
26 #define end ((unsigned char *) &littleendian) |
26 #define end ((unsigned char *) &littleendian) |
27 #define data ((unsigned char *) s->in) |
27 #define data ((unsigned char *) s->in) |
28 #define outdata ((unsigned char *) s->out) |
28 #define outdata ((unsigned char *) s->out) |
29 |
29 |
30 extern void surf( unsigned int out[8], const unsigned int in[12], const unsigned int seed[32] ); |
30 static void surf( unsigned int out[8], const unsigned int in[12], const unsigned int seed[32] ); |
31 extern void surfpcs_init( surfpcs *s, const unsigned int k[32] ); |
31 static void surfpcs_init( surfpcs *s, const unsigned int k[32] ); |
32 extern void surfpcs_add( surfpcs *s, const char *x,unsigned int n ); |
32 static void surfpcs_add( surfpcs *s, const char *x,unsigned int n ); |
33 extern void surfpcs_addlc( surfpcs *s, const char *x,unsigned int n ); |
33 static void surfpcs_addlc( surfpcs *s, const char *x,unsigned int n ); |
34 extern void surfpcs_out( surfpcs *s, unsigned char h[32] ); |
34 static void surfpcs_out( surfpcs *s, unsigned char h[32] ); |
35 #endif |
35 #endif |
36 |
36 |
37 |
37 |
38 #ifndef SUBHASH_H |
38 #ifndef SUBHASH_H |
39 #define SUBHASH_H |
39 #define SUBHASH_H |
40 |
40 |
41 unsigned int subhashs(const char *s); |
41 static unsigned int subhashs(const char *s); |
42 unsigned int subhashb(const char *s,long len); |
42 static unsigned int subhashb(const char *s,long len); |
43 #define subhashsa(SA) subhashb((SA)->s,(SA)->len) |
43 #define subhashsa(SA) subhashb((SA)->s,(SA)->len) |
44 |
44 |
45 #endif |
45 #endif |
46 |
46 |