1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
/* nettle.h 
 * 
 * Shared declarations for the various files. */ 
 
struct program; 
extern struct program *nettle_hash_program; 
extern struct program *hash_instance_program; 
extern struct program *nettle_hash_program; 
 
#define NO_WIDE_STRING(s)     do {                            \ 
    if ((s)->size_shift)                                        \ 
       Pike_error("Bad argument. Must be 8-bit string.\n");     \ 
  } while(0) 
 
 
/* Hashing methods can normally process hundreds of megabytes per second 
   so it's rather wasteful to enable threads during hashing of smaller 
   data sizes. Limit is now 1 MB. */ 
#define THREADS_ALLOW_THRESHOLD (1024 * 1024) 
 
 
char *pike_crypt_md5(int pl, const char *const pw, 
                     int sl, const char *const salt, 
                     int ml, const char *const magic); 
 
void hash_init(void); 
 
void hash_exit(void); 
 
void cipher_init(void); 
 
void cipher_exit(void); 
 
void nt_init(void); 
 
void nt_exit(void); 
 
void hogweed_init(void); 
 
void hogweed_exit(void);