01e1152003-03-12Niels Möller /* 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;
a467f92004-03-20Henrik Grubbström (Grubba) #define NO_WIDE_STRING(s) do { \ if ((s)->size_shift) \
dc8a672004-01-22Martin Nilsson  Pike_error("Bad argument. Must be 8-bit string.\n"); \
a467f92004-03-20Henrik Grubbström (Grubba)  } while(0)
37f2572003-03-13Niels Möller 
8e11b12010-11-14Jonas Walldén 
e653022010-11-14Jonas Walldén /* Hashing methods can normally process hundreds of megabytes per second
8e11b12010-11-14Jonas Walldén  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)
79598b2008-12-13Martin Nilsson char *pike_crypt_md5(int pl, const char *const pw, int sl, const char *const salt);
37f2572003-03-13Niels Möller 
a467f92004-03-20Henrik Grubbström (Grubba) void hash_init(void);
48f4542003-03-18Niels Möller 
a467f92004-03-20Henrik Grubbström (Grubba) void hash_exit(void);
48f4542003-03-18Niels Möller 
a467f92004-03-20Henrik Grubbström (Grubba) void cipher_init(void);
099d682004-01-30Martin Nilsson 
a467f92004-03-20Henrik Grubbström (Grubba) void cipher_exit(void);
099d682004-01-30Martin Nilsson 
a467f92004-03-20Henrik Grubbström (Grubba) void nt_init(void); void nt_exit(void);