01e115 | 2003-03-12 | Niels Möller | |
|
7beff1 | 2014-05-13 | Martin Nilsson | | #if 0
static void
werror(const char *format, ...)
{
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
}
#else
#define werror(x)
#endif
|
44ef7b | 2015-03-20 | Henrik Grubbström (Grubba) | | #include <nettle/nettle-meta.h>
|
a30772 | 2015-03-20 | Henrik Grubbström (Grubba) | |
|
01e115 | 2003-03-12 | Niels Möller | | struct program;
extern struct program *nettle_hash_program;
extern struct program *hash_instance_program;
extern struct program *nettle_hash_program;
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | #define NO_WIDE_STRING(s) do { \
if ((s)->size_shift) \
|
dc8a67 | 2004-01-22 | Martin Nilsson | | Pike_error("Bad argument. Must be 8-bit string.\n"); \
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | } while(0)
|
37f257 | 2003-03-13 | Niels Möller | |
|
e8be7c | 2010-11-14 | Jonas Walldén | |
|
d42d73 | 2010-11-14 | Jonas Walldén | | |
e8be7c | 2010-11-14 | Jonas Walldén | | so it's rather wasteful to enable threads during hashing of smaller
data sizes. Limit is now 1 MB. */
|
0473d5 | 2014-05-11 | Henrik Grubbström (Grubba) | | #define HASH_THREADS_ALLOW_THRESHOLD (1024 * 1024)
#define CIPHER_THREADS_ALLOW_THRESHOLD 1024
|
e8be7c | 2010-11-14 | Jonas Walldén | |
|
c17a99 | 2014-04-24 | Henrik Grubbström (Grubba) | | #ifdef HAVE_NETTLE_DSA_H
#include <nettle/dsa.h>
#endif
|
fd073e | 2014-06-23 | Henrik Grubbström (Grubba) | |
|
c17a99 | 2014-04-24 | Henrik Grubbström (Grubba) | | #ifdef dsa_params_init
|
07bae9 | 2014-04-24 | Martin Nilsson | | * it was unsigned.
|
4c4c70 | 2014-04-24 | Martin Nilsson | | */
typedef size_t pike_nettle_size_t;
#else
typedef unsigned pike_nettle_size_t;
#endif
|
fd073e | 2014-06-23 | Henrik Grubbström (Grubba) | |
#ifdef HAVE_NETTLE_CRYPT_FUNC_IS_POINTER
typedef nettle_crypt_func pike_nettle_crypt_func;
typedef nettle_hash_digest_func pike_nettle_hash_digest_func;
typedef nettle_hash_update_func pike_nettle_hash_update_func;
#else
|
64337a | 2014-11-06 | Martin Nilsson | |
#ifdef dsa_params_init
typedef nettle_cipher_func *pike_nettle_crypt_func;
#else
|
fd073e | 2014-06-23 | Henrik Grubbström (Grubba) | | typedef nettle_crypt_func *pike_nettle_crypt_func;
|
64337a | 2014-11-06 | Martin Nilsson | | #endif
|
fd073e | 2014-06-23 | Henrik Grubbström (Grubba) | | typedef nettle_hash_digest_func *pike_nettle_hash_digest_func;
typedef nettle_hash_update_func *pike_nettle_hash_update_func;
#endif
|
4c4c70 | 2014-04-24 | Martin Nilsson | |
|
79598b | 2008-12-13 | Martin Nilsson | | char *pike_crypt_md5(int pl, const char *const pw,
|
395c4a | 2012-07-25 | Martin Nilsson | | int sl, const char *const salt,
int ml, const char *const magic);
|
37f257 | 2003-03-13 | Niels Möller | |
|
b715e5 | 2017-07-31 | Martin Nilsson | | struct program *inherit_internal_class(struct pike_string *name);
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | void hash_init(void);
|
48f454 | 2003-03-18 | Niels Möller | |
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | void hash_exit(void);
|
48f454 | 2003-03-18 | Niels Möller | |
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | void cipher_init(void);
|
099d68 | 2004-01-30 | Martin Nilsson | |
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | void cipher_exit(void);
|
099d68 | 2004-01-30 | Martin Nilsson | |
|
a467f9 | 2004-03-20 | Henrik Grubbström (Grubba) | | void nt_init(void);
void nt_exit(void);
|
d5f689 | 2013-11-24 | Martin Nilsson | |
void hogweed_init(void);
void hogweed_exit(void);
|
ee9892 | 2014-04-24 | Martin Nilsson | |
void mac_init(void);
void mac_exit(void);
void aead_init(void);
void aead_exit(void);
|